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

Migrate to flask (whois-dev) #20

Open
whym opened this issue Aug 13, 2021 · 3 comments
Open

Migrate to flask (whois-dev) #20

whym opened this issue Aug 13, 2021 · 3 comments

Comments

@whym
Copy link
Owner

whym commented Aug 13, 2021

I have been preparing a flask version of the tool inspired by @wiki-ST47 's fork.

https://whois-dev.toolforge.org/ is the new version. I want someone who is running an automated tool to fetch data from this tool to test it. If it goes well, I think I can replace the current version with it.

The current version is CGI-based, which means that a python interpreter launches every time someone tries to access the tool. The flask version runs continuously on a python interpreter. This change might provide better stability and slightly better performance (but not much because the bottleneck is in whois requests which are not cached.)

@AntiCompositeNumber
Copy link

I can point AntiCompositeBot's ASNBlock task there. It runs from about 02:30 UTC - 05:00 UTC and 08:13 UTC - 08:30 UTC. The number of WHOIS requests varies between the two runs and over time, but typical volumes range from a few hundred to a thousand requests.

AntiCompositeNumber added a commit to AntiCompositeNumber/AntiCompositeBot that referenced this issue Aug 17, 2021
@whym
Copy link
Owner Author

whym commented Aug 19, 2021

@AntiCompositeNumber Thank you for testing. Please let me know if you find issues.

It runs from about 02:30 UTC - 05:00 UTC and 08:13 UTC - 08:30 UTC.

I collected the beginnings of down time since June, and it looks like your range does not coincide with it a lot.
image

@whym
Copy link
Owner Author

whym commented Aug 21, 2021

I made a few changes. One surface level change is that parametarized urls ("gateway.py?ip=...") now redirect to REST urls ("w/..."). 0b66298

@whym whym pinned this issue Aug 26, 2021
@whym whym changed the title Migrate to flask Migrate to flask (whois-dev) Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants