add dockerfile and change base domain to current one

This commit is contained in:
Francesco Grazioso 2024-04-12 12:23:42 +02:00
parent 2939da93db
commit 721076ef55
3 changed files with 13 additions and 2 deletions

View File

@ -143,8 +143,8 @@ def test_site(domain: str) -> str:
str: The response text if successful, otherwise None. str: The response text if successful, otherwise None.
""" """
console.print("[cyan]Make request site [white]...")
site_url = f"https://streamingcommunity.{domain}" site_url = f"https://streamingcommunity.{domain}"
console.print(f"[cyan]Make request site to {site_url} [white]...")
try: try:
response = requests.get(site_url, headers={'user-agent': get_headers()}) response = requests.get(site_url, headers={'user-agent': get_headers()})

View File

@ -16,7 +16,7 @@
}, },
"SITE": { "SITE": {
"streaming_site_name": "streamingcommunity", "streaming_site_name": "streamingcommunity",
"streaming_domain": "forum", "streaming_domain": "africa",
"anime_site_name": "animeunity", "anime_site_name": "animeunity",
"anime_domain": "to" "anime_domain": "to"
}, },

11
dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM python:3.11-slim
COPY . /app
WORKDIR /app
ENV TEMP /tmp
RUN mkdir -p $TEMP
RUN pip install --no-cache-dir -r requirements.txt
CMD ["python", "run.py"]