skip to Main Content

Ebay API – How to get around 'NoneType' object has no attribute 'text'

I'm working on an eBay Scraper, and I'm having some trouble with a simple "AttributeError: 'NoneType' object has no attribute 'text'"... Here is my code url = 'https://www.ebay.com/sch/i.html?_from=R40&_nkw=2017+patrick+mahomes+psa+10+auto&_sacat=0&rt=nc&LH_Sold=1&LH_Complete=1&_ipg=100' def get_data(url): r = requests.get(url) soup = bs(r.text, 'html.parser') return soup def…

VIEW QUESTION

Python Web Scraping Beautiful Soup Parse Javascript Element and process variable – Shopify

I am trying to retrieve the variable in json format to python. url = "https://limitededt.com/collections/footwear/products/adidas-originals-jonah-hill-superstar-fw7577" source = requests.get(url).text soup = BeautifulSoup(source, 'lxml') print(soup.findAll('script')[10]) The code above produces: <script>window.ShopifyAnalytics = window.ShopifyAnalytics || {}; window.ShopifyAnalytics.meta = window.ShopifyAnalytics.meta || {}; window.ShopifyAnalytics.meta.currency = 'SGD';…

VIEW QUESTION
Back To Top
Search