Hey Guys,
im trying to use Python Selenium on my Raspberry pi but with the proxy settings of the Tor service. But what ever i try it doesn load the page:
i mean chromium is starting but it loads until it stops because respond takes to long. i dont know what the problem is.
what i have done:
file /etc/privoxy/config ->
l
and
and then i restartet the service, and yes rebooting was also a try.
The python code:
any ideas how to solve the problem ?
Outputs:
cat /proc/version:
Linux version 5.4.51-v7+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1327 SMP Thu Jul 23 10:58:46 BST 2020
cat /etc/os-release:
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
0u1law
im trying to use Python Selenium on my Raspberry pi but with the proxy settings of the Tor service. But what ever i try it doesn load the page:
i mean chromium is starting but it loads until it stops because respond takes to long. i dont know what the problem is.
what i have done:
file /etc/privoxy/config ->
l
Code
isten-address localhost:8118
listen-address 192.168.1.105:8118and
Code
forward-socks5 / 127.0.0.1:9050 .and then i restartet the service, and yes rebooting was also a try.
The python code:
Code
from selenium.webdriver.common.proxy import Proxy, ProxyType
from selenium import webdriver
prox = Proxy()
prox.proxy_type = ProxyType.MANUAL
prox.autodetect = False
prox.http_proxy = "https://localhost:8118"
#prox.socks_proxy = "https://localhost:8118"
prox.ssl_proxy = "https://localhost:8118"
capabilities = webdriver.DesiredCapabilities.CHROME
prox.add_to_capabilities(capabilities)
options = webdriver.ChromeOptions()
options.add_argument("ignore-certificate-errors")
# initialize the driver
driver = webdriver.Chrome(options=options, desired_capabilities=capabilities)
driver.get('https://myip.is/')any ideas how to solve the problem ?
Outputs:
cat /proc/version:
Linux version 5.4.51-v7+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1327 SMP Thu Jul 23 10:58:46 BST 2020
cat /etc/os-release:
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
0u1law

