Advertisement
cicwak

Untitled

Jul 29th, 2022
607
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. from bs4 import BeautifulSoup as bs
  2. import requests
  3.  
  4. r = requests.get("http://russian-poetry.ru/Random.php").text
  5.  
  6.  
  7. soup = bs(r, "html.parser")
  8.  
  9. print(soup.find("pre").text)
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement