From d675c05a4243b41643778ac8fd438e80dbc338fb Mon Sep 17 00:00:00 2001 From: spbeach46 Date: Mon, 24 Aug 2020 11:25:22 -0700 Subject: [PATCH] added notes about data collection plan --- ebay_api_test.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ebay_api_test.py b/ebay_api_test.py index 6e2e7df..7747fb0 100644 --- a/ebay_api_test.py +++ b/ebay_api_test.py @@ -1,16 +1,18 @@ import requests import json from bs4 import BeautifulSoup as b +import pandas as p +# keywords = input('keyword search: ') with open('cat_list.txt') as jf: cat_list = json.load(jf) -finding_service = ['findItemsByCategory', 'getHistograms'] -departments = ["3034","93427"] -# keywords = input('keyword search: ') +finding_service = ['findItemsAdvanced', 'findCompletedItems', 'findItemsByKeywords', 'findItemsIneBayStores', 'findItemsByCategory', 'findItemsByProduct'] # list(set(re.findall(r'find\w+', response.text))) +# departments = ["3034","93427"] + for categoryID in cat_list: params = { - "OPERATION-NAME":finding_service[0], + "OPERATION-NAME":finding_service[4], "SECURITY-APPNAME":"scottbea-xlister-PRD-6796e0ff6-14862949", "SERVICE-VERSION":"1.13.0", "RESPONSE-DATA-FORMAT":"JSON",