alperiox

beautifulsoup with sdk

Dec 16th, 2022
530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. # load the required packages
  2. from bs4 import BeautifulSoup
  3. # just import the ZenRows' module
  4. from zenrows import ZenRowsClient
  5.  
  6. API_KEY = "yourapikey"
  7. client = ZenRowsClient(API_KEY)
  8. params = {"js_render":"true","premium_proxy":"true"}
  9.  
  10. url = "https://en.wikipedia.org/wiki/CSS_Baltic"
  11. # get the website data
  12. response = client.get(url, params=params)
  13.  
  14.  
Advertisement
Add Comment
Please, Sign In to add comment