That output looks little messy for me @Larz60+.
@eddywinch82 looked at code i did before here,
it had some fancy stuff like progress bar and itertools.islice to any .zip file range wanted.
A quick test with link in your last post.
Og write code that go trough all page(simple page system 2,3,4, ect...) and download.
@eddywinch82 looked at code i did before here,
it had some fancy stuff like progress bar and itertools.islice to any .zip file range wanted.
A quick test with link in your last post.
from bs4 import BeautifulSoup import requests url = 'https://www.flightsim.com/vbfs/fslib.php?searchid=65852160' base_url = 'https://www.flightsim.com/vbfs' response = requests.get(url) soup = BeautifulSoup(response.content, 'lxml') zip_links = soup.find_all('div', class_="fsc_details") for link in zip_links: print(link.find('a').text) print('-------------') print(f"{base_url}/{link.find('a').get('href')}")
Output:paidf042.zip
https://www.flightsim.com/vbfs/fslib.php?do=copyright&fid=64358
--------------------------
paidf041.zip
https://www.flightsim.com/vbfs/fslib.php?do=copyright&fid=64357
--------------------------
paidf040.zip
https://www.flightsim.com/vbfs/fslib.php?do=copyright&fid=64356
--------------------------
paidf039.zip
https://www.flightsim.com/vbfs/fslib.php?do=copyright&fid=64355
--------------------------
........
So the .zip and with dowload link,if had beed logged in could download all .zip for that page.Og write code that go trough all page(simple page system 2,3,4, ect...) and download.