Skip to content

Commit

Permalink
Oprava fungování bezrealitky scraperu při lokálním spuštění
Browse files Browse the repository at this point in the history
  • Loading branch information
janchaloupka committed Jul 15, 2023
1 parent 1e8b0c5 commit 2440507
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ VOLUME ["/data"]
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt

ENV APP_ENV=docker

COPY .env* .
COPY src .
COPY graphql /graphql
COPY graphql ./graphql

ENV APP_ENV=docker
CMD ["python3", "main.py"]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Nicméně je možné při spuštění aplikace nakonfigurovat, které **dispozi
- Remax
- Sreality
- UlovDomov
- BezRealitky

## Spuštění
- Lze spustit lokálně nebo v Dockeru
Expand Down
2 changes: 1 addition & 1 deletion src/scrapers/scraper_bezrealitky.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ScraperBezrealitky(ScraperBase):
logo_url = "https://www.bezrealitky.cz/manifest-icon-192.maskable.png"
color = 0x00CC00
base_url = "https://www.bezrealitky.cz"
file: ClassVar[str] = "/graphql/bezrealitky.json"
file: ClassVar[str] = "./graphql/bezrealitky.json"

API: ClassVar[str] = "https://api.bezrealitky.cz/"
OFFER_TYPE: ClassVar[str] = "PRONAJEM"
Expand Down

0 comments on commit 2440507

Please sign in to comment.