Python Forum

Full Version: Can I browse the net using python?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This might sound crazy...
Let's say I have a pc in USA
Can I browse from the UK using python?
Assuming we have a remote connection of some sort?

Could I browse and use the Internet and have a graphical output on my pc in the UK, but not needing one in USA?

Websites that I browse with python, what do they see as the client? Assuming that they know when you access using Firefox or chrome or other browser? So what browser do they see you using if you use python?

Thanks.
You can use Selenium with Chromedriver and a UK proxy.

If you just want to browse the Internet and appear to be from the UK, you can use your regular browser with a proxy. Selenium is more for automating browser tasks.
You can run a proxy on the USA pc and browse through that proxy from any point in the world.
You can specify the User-agent in the request:

import requests

headers = {"User-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36"}

webpage = requests.get("http://selenium-python.readthedocs.io/", headers=headers)
Big Grin yes you can.