Skip to content

Scrapy not sending post request

I was trying to make a post request to a URL but scrapy isn’t sending the post request. I am not getting the correct response. Below is my code. Answer You have a typo in your code here:

itertools’ islice(count()) vs range()

Real quick one: I just saw a tutorial where they show we can use itertools’ islice() and count() together like so: Is there any advantage in doing this instead of using range() ? Answer Is there any advantage in doing this instead of using range() ? In this example there is no advantage and range would …

Webscrape a product website like thingiverse

I am very new in webscraping and I am trying to do a small project where I can scrape a website like Thingiverse or similar where different CAD (or similar) files are shown. I am trying to for a particular Search keyword obtain a list of all the results. When I inspect the website the different products are h…

Authorization error 401 using API – Python

This is my first time using an API in Python. I want to give a query on the website http://data.bioontology.org. Not sure what the API_KEY has to be. Also, I do have an account on this website but I do not have to log in to get a query result. Can someone please help me out? Here’s the error output: