I have a basic webscraper using Selenium which I would like to be able to run on my phone when I am away from my PC. I need information generated by Javascript so Beautiful Soup isn't an option. I found Pydroid which allows me to run Python scripts on my android device but am having issues running Selenium. This is the basic code I'm trying to run
from selenium import webdriver
import chromedriver_autoinstaller
from selenium.webdriver.chrome.service import Service
options = webdriver.ChromeOptions()
options.add_experimental_option('excludeSwitches', ['enable-logging'])
chromedriver_autoinstaller.install()
driver = webdriver.Chrome(service=Service(),options=options)
I've also tried a suggestion I saw online
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_experimental_option('androidPackage', 'com.android.chrome')
driver = webdriver.Chrome('./chromedriver', options=options)
driver.get('https://google.com')
driver.quit()
But this dives a Permission denied for the chromedriver folder.