sherlock/sherlock
Christopher K. Hoadley 8619a353e4 Add override to HTTP Status Detection so HEAD request is not used. Configure Instagram to use this option.
In most cases when we are detecting by status code, it is not necessary to get the entire body:  we can detect fine with just the HEAD response.  However, Richard Getz discovered that some sites (e.g. Instagram) will not respond properly if Sherlock only requests the HEAD.

Add a "request_head_only" attribute to the data.json so HTTP Status Detection can be configured either way.  It is simpler to support this change in this fashion, as it does not require changes to the tests.

With Richard Getz <richardgetziii@gmail.com>
2020-05-09 08:13:23 -05:00
..
resources Add override to HTTP Status Detection so HEAD request is not used. Configure Instagram to use this option. 2020-05-09 08:13:23 -05:00
tests Remove verbose option from tests. It is not used anymore. 2020-04-23 07:09:31 -05:00
__init__.py Move content into sherlock sub-directory inside of repo. This directory will look very much like what the packaged version of Sherlock will look like when it is installed in the site-packages area. 2019-10-26 22:42:03 -05:00
__main__.py Move content into sherlock sub-directory inside of repo. This directory will look very much like what the packaged version of Sherlock will look like when it is installed in the site-packages area. 2019-10-26 22:42:03 -05:00
notify.py Get rid of function that formats time. 2020-04-23 21:33:32 -05:00
result.py Add username and site information to Query Result object. This will allow whoever defines a Query Notify object to have all of the context required to do their notifications. 2020-04-19 15:41:59 -05:00
sherlock.py Add override to HTTP Status Detection so HEAD request is not used. Configure Instagram to use this option. 2020-05-09 08:13:23 -05:00
sites.py Change SitesInformation() to use a generator when iterating thru the sites. This avoids the problem of the state (i.e. self.__iteration_index) getting corrupted if any of the methods of a given object needed to iterate for their own purposes while a caller was already iterating thru the same object. The code is also much simpler to follow. 2019-12-31 21:18:49 -06:00