Advertisement
caffeinatedmike

ProxyGenie Simple Example Usage

Jul 20th, 2018
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. import proxygenie
  2. #Returns a requests session with random US proxy set
  3. geoFreeSession = proxygenie.Session('US')
  4. #Request a webpage that's blocked in the UK
  5. unblockedUkPage = geoFreeSession.get(url)
  6. #Do what you want with the data :)
  7. print unblockedUkPage.content
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement