repl.it
@wolf32669/

Amazon

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
import urllib.request
from bs4 import BeautifulSoup


search = input('Search: ')
search = '+'.join(search.split())
link = 'https://www.amazon.com/s/ref=nb_sb_noss_2?url=search-alias%3Daps&field-keywords='+search+'&rh=i%3Aaps%2Ck%3A'+search
page = urllib.request.urlopen(link)
soup = BeautifulSoup(page, 'html.parser')
dadsec=  598
Fetching token
?