Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
313 views
in Technique[技术] by (71.8m points)

python - Automate file download from web with login and multiple subrouts for each file

I gotta download 250 csv files in 250 separate webpages within the same domain that requires a login.

Each csv file contains data for a certain date each located in a webpage(in the same domain) for that specific date.

So for 3 dates the links to download 3 cvs files after the login is successful look like this: https://app.chartmetric.com/charts/spotify/daily?type=regional&region=global&date=2019-01-03 https://app.chartmetric.com/charts/spotify/daily?type=regional&region=global&date=2019-01-02 https://app.chartmetric.com/charts/spotify/daily?type=regional&region=global&date=2019-01-01

After clicking in a box that looks the same within each of this webs i get each time a cvs file, for each of this webs the cvs file names would be the following. SPOTIFY DAILY GLOBAL CHART - TOP 200 (2019-01-03).csv SPOTIFY DAILY GLOBAL CHART - TOP 200 (2019-01-02).csv SPOTIFY DAILY GLOBAL CHART - TOP 200 (2019-01-01).csv

Please help me out to automate the process to download all this 250 csv files or maybe even make it so that i can define the range of dates wanted for download to be read from another csv file.

the click button for beginning the download for each csv file in each date specific webpage looks like this

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...