Skip to content

Commit

Permalink
Merge pull request #114 from City-Bureau/revert-109-fix-cle-transit
Browse files Browse the repository at this point in the history
Revert "🕷️ Fix spider: Greater Cleveland Regional Transit Authority"
  • Loading branch information
SimmonsRitchie authored Jul 31, 2024
2 parents 53ad877 + e856f2d commit 5e7719a
Show file tree
Hide file tree
Showing 9 changed files with 920 additions and 445 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/archive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ jobs:
env:
PIPENV_DEFAULT_PYTHON_VERSION: 3.9

- name: Set up playwright
run: |
pipenv run playwright install firefox
- name: Run scrapers
run: |
export PYTHONPATH=$(pwd):$PYTHONPATH
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ jobs:
env:
PIPENV_DEFAULT_PYTHON_VERSION: ${{ matrix.python-version }}

- name: Set up playwright
run: |
pipenv run playwright install firefox
- name: Check imports with isort
run: pipenv run isort . --check-only

Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ jobs:
env:
PIPENV_DEFAULT_PYTHON_VERSION: 3.9

- name: Set up playwright
run: |
pipenv run playwright install firefox
- name: Run scrapers
run: |
export PYTHONPATH=$(pwd):$PYTHONPATH
Expand Down
2 changes: 0 additions & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ python-dateutil = "*"
pdfminer-six = "*"
scrapy-sentry-errors = "1.0.0"
pytz = "*"
scrapy-playwright = "*"
pytest-mock = "*"

[dev-packages]
freezegun = "*"
Expand Down
179 changes: 14 additions & 165 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions city_scrapers/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,3 @@
SPIDER_MIDDLEWARES = {}

logging.getLogger("pdfminer").propagate = False

# Playwright settings
TWISTED_REACTOR = "twisted.internet.asyncioreactor.AsyncioSelectorReactor"
DOWNLOAD_HANDLERS = {
"http": "scrapy_playwright.handler.ScrapyPlaywrightDownloadHandler",
"https": "scrapy_playwright.handler.ScrapyPlaywrightDownloadHandler",
}
PLAYWRIGHT_BROWSER_TYPE = "firefox"
Loading

0 comments on commit 5e7719a

Please sign in to comment.