remove after=args.after
This commit is contained in:
parent
12e0261f45
commit
9ff6628c09
2 changed files with 2 additions and 4 deletions
4
.github/workflows/scrape_and_commit.yml
vendored
4
.github/workflows/scrape_and_commit.yml
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
name: Run Snowscraper and Commit Changes
|
name: Run Snowscraper and Commit Changes
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
@ -11,14 +12,11 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
|
||||||
node-version: '16'
|
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.8
|
python-version: 3.8
|
||||||
node-version: '16'
|
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -14,7 +14,7 @@ def register_scraper(cls):
|
||||||
def run_all(args: argparse.Namespace):
|
def run_all(args: argparse.Namespace):
|
||||||
results = {}
|
results = {}
|
||||||
for scraper_cls in SCRAPERS.values():
|
for scraper_cls in SCRAPERS.values():
|
||||||
scraper = scraper_cls(after=args.after)
|
scraper = scraper_cls()
|
||||||
results |= scraper.scrape()
|
results |= scraper.scrape()
|
||||||
print(results)
|
print(results)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue