• 0
Sign in to follow this  
Mario Lopes

Lançar o Firefox com extensões



Pretendo aceder a um site com selenium. O meu problema é simples: Não consigo lançar o firefox com o módulo https://addons.mozilla.org/pt-PT/firefox/addon/anonymox/

instalado. Lanço o firefox mas sem este módulo não consigo aceder ao site que quero porque o google bloqueou o meu IP (questão de feitios...)

Eis o código que estou a usar:

from selenium import webdriver
import webbrowser
import requests
from bs4 import BeautifulSoup
from urllib.request import urlopen
browser = webdriver.Firefox()
url = 'http://want-to-go-in/'
soup = BeautifulSoup(urlopen(url), 'html.parser')
images = soup.findAll('img')

O firefox é lançado sem a extensão que referi e logo a minha entrada é barrada.

Quem sabe como resolver?

Share this post

Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this