Guest User

Untitled

a guest
Jun 9th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. from ebaysdk.finding import Connection as finding
  2. from bs4 import BeautifulSoup
  3.  
  4. Keywords = input("enter keywords")
  5. api = finding(appid='APP ID', config_file=None)
  6. api_request = { 'keywords': Keywords, 'outputSelector': 'SellerInfo' }
  7.  
  8.  
  9. response = api.execute('findItemsByKeywords', api_request)
  10. soup=BeautifulSoup(response.content, 'lxml')
  11.  
  12. totalentries = int(soup.find('totalentries').text)
  13. items= soup.find_all('item')
Advertisement
Add Comment
Please, Sign In to add comment