Switched from geckodriver to chrome

This commit is contained in:
2022-09-18 19:26:55 +02:00
parent 7cf7422b46
commit db161e50c8
13 changed files with 135 additions and 61 deletions

View File

@@ -0,0 +1,16 @@
if [ -d "/user_data/news_fetch.profile" ]
then
echo "Profile already exists, skipping creation"
else
google-chrome &
sleep 5
cp -r /home/seluser/.config/google-chrome/Default /user_data/news_fetch.profile
PID=$(pidof chrome)
echo "Now killing processes with pid:" $PID
kill $PID
cd /user_data/news_fetch.profile
wget https://github.com/iamadamdev/bypass-paywalls-chrome/archive/master.zip
unzip master
fi
google-chrome --user-data-dir=/user_data/news_fetch.profile