Skip to content

Fixed -l flag for finding live links.#66

Merged
PSNAppz merged 24 commits intoDedSecInside:devfrom
KingAkeem:dev
Feb 12, 2018
Merged

Fixed -l flag for finding live links.#66
PSNAppz merged 24 commits intoDedSecInside:devfrom
KingAkeem:dev

Conversation

@KingAkeem
Copy link
Member

@KingAkeem KingAkeem commented Feb 8, 2018

Takes list of URLs and asychrnously calls HEAD request on each
link in the list and test status code for a 200 response. If the
response is not 200 or takes longer than 8 seconds, the link is
declared dead. Also switched from urllib.request to requests for
not only simplicity but thread-safety also.

Fixes: #61

Merge pull request #53 from KingAkeem/dev
Takes list of URLs and asychrnously calls HEAD request on each
link in the list and test status code for a 200 response. If the
response is not 200 or takes longer than 8 seconds, the link is
declared dead. Also switched from urllib.request to requests for
not only simplicity but thread-safety also.
Takes list of URLs and asychrnously calls HEAD request on each
link in the list and test status code for a 200 response. If the
response is not 200 or takes longer than 8 seconds, the link is
declared dead. Also switched from urllib.request to requests for
not only simplicity but thread-safety also.
@PSNAppz
Copy link
Member

PSNAppz commented Feb 8, 2018

@KingAkeem Fix ext flag

@KingAkeem
Copy link
Member Author

What about issue #58 ? I was going to work on it but I didn't know if someone was already working on it.

Was previously showing dead for any status code which isn't
200, so I use raise_for_status function from requests which only
raises an error if the status code is an HTTP error status code
such as 4xx and 5xx
To use dash -e flag, pass url name like www.url.com
and it will try to establish an https connection than http if
the secure conneciton fails. If both fail then an error message is
printed. If the connection is successful than we search for the
onion domain name and the others that were passed with the flag.
Copy link
Member

@PSNAppz PSNAppz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix this too


Returns:
websites: List of websites that were found
wfebsites: List of websites that were found
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo error

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@PSNAppz
Copy link
Member

PSNAppz commented Feb 12, 2018

@KingAkeem The test seems broken.

ImportError: No module named 'requests'

Any idea ? The requests library is added to requirements btw.

@PSNAppz PSNAppz mentioned this pull request Feb 12, 2018
@PSNAppz PSNAppz merged commit b363205 into DedSecInside:dev Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants