Christopher K. Hoadley
bc6bc0a8f1
Add BitBucket to tests.
6 years ago
Christopher K. Hoadley
dea8c29351
Change tests so that all sites that share a common username are executed in parallel. Just the little bit of extra processing halves the time taken for the tests (~15s verus ~34s). This will only get worse as the test coverage improves...
6 years ago
Christopher Kent Hoadley
5eb06e3502
Add Contribution File
...
I mainly wanted to add this file so that people adding new sites would add test usernames. But, this document should be filled out with more detail on the other types of changes....
6 years ago
Christopher Kent Hoadley
ec993fa941
Merge pull request #160 from TheYahya/hoadlck-json-driven-tests
...
JSON Driven Tests
6 years ago
Christopher K. Hoadley
ea90e7fa95
Bump version and add link to Wiki on procedure to add new sites.
6 years ago
Christopher K. Hoadley
bf0959d84b
Convert all supported Response URL sites to use JSON driven tests.
6 years ago
Christopher K. Hoadley
a576af358f
Convert all supported HTTP Status Code sites to use JSON driven tests.
6 years ago
Christopher K. Hoadley
be59b91107
Add information about a claimed and an unclaimed username to the site information. This will allow the tests to directly source the information from the JSON data. It will also allow people who add new sites to also add test data (which will automatically get tested). Add a new test method which finds all sites of a given detect algorithm, and which also has test vectors, and runs tests against them.
...
At the current time, the test vectors are optional. But, once when there is finally complete coverage, then they will be required. Anyone who adds a site without also adding test data will trigger a failure.
6 years ago
Yahya SayadArbabi
aa67a3d792
Merge branch 'eladbarack-master'
6 years ago
Yahya SayadArbabi
8a87513a0d
bump version
6 years ago
eladbarack
318736b61a
Added Investing.com & Twitch
6 years ago
Yahya SayadArbabi
7c34cd6ba1
Merge branch 'DigitallyBorn/master'
6 years ago
Yahya SayadArbabi
800431b424
bump version
6 years ago
Ricky Smith
d4dbc94267
Move to multi-stage docker build
...
Also add additional packages to the build container for hosts that don't know anything about python, like Docker Desktop on OSX/Windows.
6 years ago
Christopher Kent Hoadley
6b31cd87e3
Merge pull request #156 from TheYahya/hoadlck-tests-coverage
...
Add More Tests For Sites
6 years ago
Christopher K. Hoadley
7fb6d26cc7
Previous code was failing the flake8 tests because the random module was not imported.
6 years ago
Christopher K. Hoadley
83aed9aeee
Add test methods for Error Message detection method as well. Add Dribbble to tests.
6 years ago
Christopher K. Hoadley
6fc5c131db
Convert Designspiration to use the Status Code detection method. The site gives a clean 404 error. Add to tests.
6 years ago
Christopher K. Hoadley
26ef2e1b9b
Convert Codementor to use the Status Code detection method. The site gives a clean 404 error. Add to tests.
6 years ago
Christopher K. Hoadley
110b93a757
Convert Codecademy to use the Status Code detection method. The site gives a clean 404 error. Add to tests.
6 years ago
Christopher K. Hoadley
223d9716cb
Convert BuzzFeed to use the Status Code detection method. The site gives a clean 404 error. Add to tests.
6 years ago
Christopher K. Hoadley
08ac008828
Convert Behance to use the Status Code detection method. The site gives a clean 404 error. Add to tests.
6 years ago
Christopher K. Hoadley
65e3820608
Convert Bandcamp to use the Status Code detection method. The site gives a clean 404 error. Add to tests.
6 years ago
Christopher K. Hoadley
c76b4524da
Convert BLIP.fm to use the Status Code detection method. The site gives a clean 404 error. Add to tests.
6 years ago
Christopher K. Hoadley
8a82d883c6
Convert AngelList to use the Status Code detection method. The site gives a clean 404 error. Add to tests.
6 years ago
Christopher K. Hoadley
89787b1509
Add test methods for HTTP Status detection method as well.
6 years ago
Christopher K. Hoadley
bd941c8034
Convert Academia.edu to use the Status Code detection method. The site gives a clean 404 error.
6 years ago
Christopher K. Hoadley
f609320d3c
Convert Canva to the more robust Response URL detection method. Add to tests to ensure that it is covered.
6 years ago
Yahya SayadArbabi
916fdd0603
Merge branch 'BlucyBlue-master'
6 years ago
Yahya SayadArbabi
f69be05803
Rebase & bump version
6 years ago
BlucyBlue
465f4c85c3
Typo in printout when reading proxies from file.
6 years ago
BlucyBlue
9f523365f7
Finally importing load_proxies module.
6 years ago
BlucyBlue
8587d1a835
If the ProxyError gets raised in the 'get_response' function, the request will be tried with another proxy selected from the 'proxy_list' global var. New parameter 'retry_no' is the number of retries that will be made before throwing a final ProxyError.
6 years ago
BlucyBlue
6bf8358342
Set new parameter 'retry_no' of the 'get_response' function to 3 (can be changed). This will be used if retrying a ProxyError.
6 years ago
BlucyBlue
855f154d9b
If the 'proxy_list' we select a random member and pass it as the proxy to the session. If the list is empty, the proxy parameter will be set to arg.proxy, which defaults to None if the user did not pass an individual proxy as well.
6 years ago
BlucyBlue
2accdcafea
If the user selected --check_proxies option along with --proxy_list option, proxies loaded from the .csv file are checked using the check_proxies function from the load_proxies module. Proxies which pass the test are stored in the proxy_list global var.
6 years ago
BlucyBlue
6cc4e22898
If the user selected --proxy_list option, we attempt to read proxies from the csv, and store the list in global var proxy_list.
6 years ago
BlucyBlue
bd683022b3
Exception is raised if both a single proxy and the proxy_list are used. As needed, this can be changed to merging the single proxy with the proxy list, but seems a bit unnecessary at this time.
6 years ago
BlucyBlue
dc32d473e0
Exception will now be raised if etiher a single proxy or proxy_list options are used along with Tor.
6 years ago
BlucyBlue
c5e06b068e
Added two new arguments, '--proxy_list'/'-pl' and '--check_proxies'/'-cp', for users to activate options of reading proxies from a document (at this time, only .csv is supported), and check their anonimity before using them.
6 years ago
BlucyBlue
166d224423
First change to 'sherlock.py' for use of load_proxies module. Global variable proxy_list is created, and by default set to an empty list. This variable will store proxies from a proxy list (if this option is used), and will enable different threads to access proxies at the same time.
6 years ago
BlucyBlue
65a040dbbb
Function 'check_proxy_list' which checks anonimity of each proxy contained in a list of named tuples. Proxies are checked by using the 'check_proxy' function.
6 years ago
BlucyBlue
901074ea4e
Function 'check_proxy', which checks anonimity of a signle proxy by anaylizing return headers received from a request using the proxy in question.
6 years ago
BlucyBlue
a63bdb3152
Created new file 'load_proxies.py' to store functions for reading proxies from files, and checking proxy anonimity. Created the function 'load_proxies_from_csv' which reads proxies from a .csv file to a list of named tuples.
6 years ago
Yahya SayadArbabi
263b8b3b90
Merge branch 'aditisrinivas97-master'
6 years ago
Yahya SayadArbabi
67108071e5
bump version
6 years ago
aditisrinivas97
619d9ab6bc
Fix issue with site name and url
6 years ago
Yahya SayadArbabi
011df7af55
bump version
6 years ago
Yahya SayadArbabi
fd63e1093f
Merge branch 'avinashshenoy97/patch-1'
6 years ago
Avinash Shenoy
3db3f4558b
Parallelized updating alexa ranking
6 years ago