Advertisement
dereksir

Untitled

Jul 23rd, 2023
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. from bs4 import BeautifulSoup
  2. import cloudscraper
  3.  
  4. url = "https://opensea.io/rankings"
  5. scraper = cloudscraper.create_scraper()
  6. info = scraper.get(url)
  7.  
  8. print(info.status_code)
  9.  
  10. soup = BeautifulSoup(info.text, "html.parser")
  11. print(soup.find(class_ = "gCpBEX").get_text())
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement