Answer the question
In order to leave comments, you need to log in
How to pull text from sqlite3 tuple?
Hello everyone! I have a problem. I need to fetch links from the database of the url column, and then send a request to them via requests , but I get an error
No connection adapters were found for "('https://www.sahibinden.com/renault-fluence?sorting=date_desc',)"
db = sqlite3.connect('database.db')
cursor = db.cursor()
query = """SELECT url FROM userdata"""
cursor.execute(query)
for url in cursor:
r = requests.get(url=url, headers=headers)
soup = BeautifulSoup(r.text, "lxml")
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question