Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am trying to scrape all tables from Area dropdown list from this website Data Tables | U.S. Drought Monitor[^].I am new to scrapping and has no clue how approach this problem. Can someone please guide me.
Thank you

What I have tried:

import requests
import re

url = 'https://droughtmonitor.unl.edu/DmData/DataTables.aspx'
response = requests.get(url)

soup = BeautifulSoup(response.text,'lxml')

items = soup.find_all('select',class_='form-select')

print(items)
Posted
Updated 6-Jun-23 9:15am
v2

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900