Download any PDF easily with python

Download any PDF easily with python

Steps to download pdf files through python

Import the requests module and pandas and datetime for data manipulation.

No alt text provided for this image


Use username and password and URL as filename.

No alt text provided for this image


  1. I have used the date to generate the dynamic filename in filename
  2. localloc is used to specify the local location on PC
  3. Use the?requests.get?method to retrieve the file from the URL.
  4. Write the data file to local only when the status = 200 otherwise print the filename so as it could be investigated manually.

Manu Satsangi

OMS Implementation | Stakeholder Management | Strategic Planning & Design | Program Management | Supply Chain

3 年

Data Onion!!! LOL... nice name Bro.. You inspire me by creating new initiatives! Best of luck!

要查看或添加评论,请登录

Ankush Arya的更多文章

  • Computer Vision : A PyTorch Model Trained on the Stanford Cars Dataset

    Computer Vision : A PyTorch Model Trained on the Stanford Cars Dataset

    Introduction In the rapidly advancing field of computer vision, new breakthroughs constantly reshape the boundaries of…

  • Customer churn

    Customer churn

    Introduction Churn is the term for the natural and inevitable way that a business will lose customers. In this post, I…

    2 条评论
  • Understanding interactions between the predictors and response variable

    Understanding interactions between the predictors and response variable

    Introduction Before diving into modelling, I'll show you how to do some exploratory data analysis and document your…

  • Car model prediction using CNN

    Car model prediction using CNN

    This project is to apply my learnings in Convolutional Neural Networks in TensorFlow from Coursera. Goal Code CNN which…

  • Automating laptop configuration

    Automating laptop configuration

    I have been working for sometime now to find solution to automate installing software and setting softwares on my…

    1 条评论
  • Is India flattening the curve?

    Is India flattening the curve?

    I am trying to get deeper in the data and trying to understand growth of infected people in India. And try to look into…

    1 条评论
  • COVID19 growth viz-a-viz India

    COVID19 growth viz-a-viz India

    With a population of 1.3 billion and home to the worlds most densely populated cities namely Kolkata, Mumbai and…

    6 条评论
  • Quest for COVID19 Data

    Quest for COVID19 Data

    My quest for understanding the COVID data from the a Data Scientist perspective has taken me on a journey which is…

    7 条评论

社区洞察

其他会员也浏览了