fitbitScraper | R package to scrape fitbit data | Runtime Evironment library
kandi X-RAY | fitbitScraper Summary
kandi X-RAY | fitbitScraper Summary
This package scrapes data from fitbit.com It only works if you use email / password to login. Not sure about facebook or google login.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of fitbitScraper
fitbitScraper Key Features
fitbitScraper Examples and Code Snippets
Community Discussions
Trending Discussions on fitbitScraper
QUESTION
I am currently working with the Scrapy Python library.
First I make a FormRequest call to the Fitbit's login page (https://www.fitbit.com/login) to log myself in. Then I make close to 100 requests to the Fitbit's API (https://api.fitbit.com).
To not stress out the API (and to not get banned from it!), I wanted to set a delay between the requests using DOWNLOAD_DELAY in the settings.py file. However it is not working.
I was testing it in the tutorials (http://scrapy.readthedocs.io/en/latest/intro/tutorial.html) and it was working properly there.
What do you think? Is it because I request an API (supposed to handle those kinds of accesses)?
EDIT: here is the pseudo code of my spider:
...ANSWER
Answered 2017-Dec-29 at 17:42According to the documentation:
DOWNLOAD_DELAY: The amount of time (in secs) that the downloader should wait before downloading consecutive pages from the same website. This can be used to throttle the crawling speed to avoid hitting servers too hard.
As we can see there, this configuration only affects consecutive pages from the same website, and that is because of the assigned slots
of the crawler. By default, scrapy
sets a slot per domain (because the idea is that every slot should handle its own speed).
Now, you can also change on which slot
a request could be handled with the meta
variable download_slot
, so make sure you are not playing with that variable if you don't know what it could do.
Also other settings can interfere with DOWNLOAD_DELAY
like:
So make sure they are not enabled, or you are not trying to use both settings on the same project.
Also it is important to point-out that download_delay
can also be enabled as a Spider
variable, and that it takes precedence over the one inside Settings.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fitbitScraper
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page