Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from bs4 import BeautifulSoup
- from requests import Session, get, post
- with Session() as s:
- url = "https://www.filmweb.pl/j_login"
- payload = {'j_username': 'coen00', 'j_password': ' '}
- s.post(url, data=payload)
- # An authorised request.
- for i in range(1,20):
- page = s.get("https://www.filmweb.pl/user/coen00/wantToSee?page="+str(i)+"")
- # print(page.url)
- soup = BeautifulSoup(page.content, 'html.parser')
- movies = soup.find_all("h3", class_="filmPreview__title")
- for x in movies:
- print(x.getText())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement