January 2019
Beginner to intermediate
776 pages
19h 58m
English
Now, you may execute your recipe by going to the folder, RequestsThrottler-0.1.0/requests_throttler.
$ cd RequestsThrottler-0.1.0/requests_throttler
Make sure to give the full addresses as the command-line argument. For example, provide http://cnn.com. Not cnn.com. Otherwise, you will receive an error message similar to the one shown following:
requests.exceptions.MissingSchema: Invalid URL 'cnn.com': No schema supplied. Perhaps you meant http://cnn.com?
Run the recipe using the following command:
$ python 20_10_requests_throttling.py --address="http://cnn.com" ^[[1~[Thread=MainThread - 2017-07-29 19:34:08,897 - INFO]: Starting base throttler 'base-throttler'... [Thread=MainThread - 2017-07-29 19:34:08,897 - INFO]: Submitting ...
Read now
Unlock full access