Fixed imports, tags

This commit is contained in:
2025-07-30 11:02:52 +02:00
parent 46f7d3a27d
commit 42d31a68c4
2 changed files with 5 additions and 2 deletions

2
.gitignore vendored
View File

@ -12,3 +12,5 @@ __pycache__/
# Output files
/last_pid.txt
/data.db
/errored-document.html
*.log

View File

@ -4,7 +4,8 @@ import time
import random
import tomllib
from .scraper import get_posts
from .scraper import get_posts, scraper
import cloudscraper
with open("config.toml", "rb") as file:
config = tomllib.load(file)
@ -33,7 +34,7 @@ for pid in range(start_pid, end_pid, 42):
for _ in range(3):
try:
last_exception = None
posts = get_posts(f"https://rule34.xxx/index.php?page=post&s=list&pid={pid}")
posts = get_posts(f"https://rule34.xxx/index.php?page=post&s=list&tags=all&pid={pid}")
break
except Exception as e:
last_exception = e