Note: There is something in the title to test this tool.
About: (required)
This searches for spam on a given site and places the links in an MD file.
Screenshot / Code Snippet: (highly recommended)
# Imports not included
def get_spam(site: str = "stackoverflow") -> str:
true = True
false = False
json = eval(requests.get(f"https://api.stackexchange.com/2.3/questions?page=1&pagesize=30&order=desc&sort=creation&site={site}&filter=!Fc6b9*tI0e7rqpMIoRUAgp8tJ8").text)['items']
spam = [x for x in json if re.search(r'(?:\d-*){10}', x['link'])]
return '\n'.join(x['link'] for x in spam)
Download / Install: (required)
Fork or clone this repo, change sitename.txt
to the desired site and run the workflow. It will also be run when current_minute % 5 == 4
. To stop this, you can comment out the schedule:
and - cron:
lines.
Platform: (recommended)
Works on GitHub.
Contact: (optional)
Just me. Open a discussion if you want to contact me. Note that discussions are public.
License: (optional)
Not under a license yet.
Code: (recommended)
Just used the requests
module in Python to query from the API. You can contribute by forking and opening a pull request.