Created
November 30, 2019 17:17
-
-
Save ty-shaikh/86de54d1e6ee6cf0fff32dc5679dae53 to your computer and use it in GitHub Desktop.
Pull down Poshmark search results.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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