'Scrape Government GSA Advantage using Beautiful Soup
I need to scrape some product data from GSA Advantage but I am having difficulty figuring out how to configure the request.
I can brut force the requests using selenium but I am hoping I could do it more effectively with requests.
import requests
import bs4
url = "https://www.gsaadvantage.gov/advantage/ws/search/advantage_search?q=0:0Paint%20Brush%20%238%20RoundSash%20China%20Hair%20Soft&db=0&searchType=0"
response = requests.get(url)
soup = bs4.BeautifulSoup(response.text, 'html.parser')
print(soup)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
