Skip to content

Instantly share code, notes, and snippets.

@ty-shaikh
Created November 30, 2019 17:17
Show Gist options
  • Save ty-shaikh/86de54d1e6ee6cf0fff32dc5679dae53 to your computer and use it in GitHub Desktop.
Save ty-shaikh/86de54d1e6ee6cf0fff32dc5679dae53 to your computer and use it in GitHub Desktop.
Pull down Poshmark search results.
def run_search(search_url):
"Pull down search results and extract out product cards"
response = get(search_url, headers=HEADER)
html_soup = BeautifulSoup(response.text, 'html.parser')
item_container = html_soup.find_all('div', class_ = 'tile')
return item_container
product_cards = run_search(SEARCH_URL)
print(product_cards)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment