Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pyperclip
- import requests
- import bs4
- keyword = pyperclip.paste()
- print(keyword)
- res = requests.get('https://google.com/search?q='+keyword)
- soup = bs4.BeautifulSoup(res.content,'html.parser')
- links = soup.findAll('.r a')
- for link in links:
- print(link["href"])
Add Comment
Please, Sign In to add comment