Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes status_code 503 error caused by Cloudflare #861

Merged
merged 3 commits into from Sep 21, 2020

Conversation

omererdem
Copy link
Contributor

  • Added cloudscraper module and made requests with it to bypass Cloudflare protection when requesting details and location info.
  • Updated requirements to use cloudscraper module.

Added cloudscraper module and made requests with it to bypass Cloudflare protection when requesting details and location info
Added cloudscraper module and made requests with it to bypass Cloudflare protection when requesting details and location info
@dadokkio
Copy link
Contributor

apart from the tab/spaces issue the pull works fine. If you can fix that I'll merge asap.

s = requests.Session()
s.get('https://talosintelligence.com/reputation_center/lookup?search={}'.format(data))

scraper = cloudscraper.CloudScraper()
Copy link
Contributor

Choose a reason for hiding this comment

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

can you please change tabs with spaces? There is a "TabError: inconsistent use of tabs and spaces in indentation" error.

@dadokkio dadokkio changed the base branch from master to develop September 21, 2020 08:20
@dadokkio dadokkio merged commit 09cbf95 into TheHive-Project:develop Sep 21, 2020
@dadokkio dadokkio added this to In progress in Cortex-Neurons 3.0 via automation Sep 29, 2020
@dadokkio dadokkio moved this from In progress to Done in Cortex-Neurons 3.0 Sep 29, 2020
@finchy
Copy link

finchy commented Oct 6, 2020

Perhaps its because scraping of the data from talosintelligence.com is not allowed per the terms of service:

https://talosintelligence.com/reputation_center/support#terms

If someone wants to contact me regarding the use case and what you're trying to do here, we can chat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants