简体   繁体   中英

How to download files from Scraped Links[python] without logging in to a specified directory

How to Download PDFs from Scraped Links [Python]?

After working on this I was stuck with the following issues Is it possible to download if my college portal has a login page and if yes what should be added to this... Can this be fixed

It is possible, but you should use something like Selenium. This library will allow you to run a browser and navigate through coding, just like you would. You will be able to fill out the username and password forms and click the submit button , and log in to the website. Check out this guide about web scraping and the Selenium library

If you find Selenium too slow, a faster alternative is Mechanize . The problem is that it does not process Javascript, and this will break some webpages.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM