Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- from bs4 import BeautifulSoup
- res = requests.get("https://www.hasznaltauto.hu").text
- soup = BeautifulSoup(res,'html')
- cars = [str(x.text) for x in soup.find(id="hirdetesszemelyautosearch-marka_id").find_all('option')][1:]
- print(cars)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement