0

Program to download pdf from google using google search

i code a program which you give him the topic you want to download pdf of it , but it's not working well, so could anyone help me with that try: from googlesearch import search except ImportError: print("No module named 'google' found") extension = "ext:pdf" query = "waste food" + extension i=0 for j in search(query, tld="co.in", num=10, stop=10, pause=2): print(j) from pathlib import Path import requests filename = Path(i+".pdf") url = j response = requests.get(j) filename.write_bytes(response.content) i=i+1

30th Dec 2021, 10:10 AM
Mahmoud Hamed
Mahmoud Hamed - avatar
1 Antwort
0
any help 😢
30th Dec 2021, 2:46 PM
Mahmoud Hamed
Mahmoud Hamed - avatar