21
submitted 1 day ago* (last edited 1 day ago) by Crumpled6273@lemmy.ca to c/learn_programming@programming.dev

I don't know how reliable or practical it is. After learning python programming I needed to work on any project to actually improve my skills and understand how python works. So i built a Anti-AI blocklist using various sources and my own manual denylist.

I also implemented a dead domain link filtering by trying to initialize a query to each entries. If it fails more than 10 times, it will be added to dead domains, only applicable for external sources. Yes, I know most of you guys will ask what if some domains get blocked by security firewalls. I don't know. In my research I found that there is no ways to identify it is blocked by a firewall or actually a dead domain by the response received. But I will try to improve it as i can.

The update process is done using github actions. First I setup built-in scheduling only to realize even after 12 hours days it didn't run atleast once. So after getting fraustrated I used a domain called cron-job.org to setup triggers. Now it working flawlessly.

you are viewing a single comment's thread
view the rest of the comments
[-] one_old_coder@piefed.social 5 points 1 day ago

I don't understand who should use this project, or what it is doing, but you must wrap the global code (everything in list_sources.py except the function is_dead_domain) inside a "main function" like:

def main(): pass  
if __name__ == "__main__": main()  
this post was submitted on 28 Nov 2026
21 points (95.7% liked)

Learn Programming

2310 readers
29 users here now

Posting Etiquette

  1. Ask the main part of your question in the title. This should be concise but informative.

  2. Provide everything up front. Don't make people fish for more details in the comments. Provide background information and examples.

  3. Be present for follow up questions. Don't ask for help and run away. Stick around to answer questions and provide more details.

  4. Ask about the problem you're trying to solve. Don't focus too much on debugging your exact solution, as you may be going down the wrong path. Include as much information as you can about what you ultimately are trying to achieve. See more on this here: https://xyproblem.info/

Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 3 years ago
MODERATORS