Download check_json_posts.py from webmazta/contentai: direct link, hf CLI and curl.
- Browser
- Download file 277 Bytes
-
https://huggingface.co/spaces/webmazta/contentai/resolve/main/check_json_posts.py
- Command line
-
hf download hf://spaces/webmazta/contentai/check_json_posts.py
-
curl -L -o check_json_posts.py https://huggingface.co/spaces/webmazta/contentai/resolve/main/check_json_posts.py
277 Bytes
| import app | |
| conn = app.get_db() | |
| rows = conn.execute("SELECT id, source_url FROM posts WHERE source_url LIKE '%{%'").fetchall() | |
| if not rows: | |
| print("NO POSTS FOUND WITH JSON IN SOURCE_URL") | |
| else: | |
| for r in rows: | |
| print(f"[{r['id']}] {r['source_url']}") | |
| conn.close() | |