Download find_bad_posts.py from webmazta/contentai: direct link, hf CLI and curl.
- Browser
- Download file 210 Bytes
-
https://huggingface.co/spaces/webmazta/contentai/resolve/main/find_bad_posts.py
- Command line
-
hf download hf://spaces/webmazta/contentai/find_bad_posts.py
-
curl -L -o find_bad_posts.py https://huggingface.co/spaces/webmazta/contentai/resolve/main/find_bad_posts.py
210 Bytes
| import app | |
| conn = app.get_db() | |
| rows = conn.execute("SELECT id, source_url FROM posts WHERE source_url LIKE '%is_redo%'").fetchall() | |
| for r in rows: | |
| print(f"[{r['id']}] URL: {r['source_url']}") | |
| conn.close() | |