Skip to content

Commit

Permalink
Updated README and GitHub test action
Browse files Browse the repository at this point in the history
  • Loading branch information
sammyfung committed Feb 5, 2025
1 parent 38c68fc commit 0d6b1d3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/hk0weather.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ jobs:
run: |
coverage run -a -m scrapy list
working-directory: hk0weather
- name: Test a scraper of regional weather
- name: Test the web scraping for weather info
run: |
coverage run -a -m scrapy crawl regional -o regional.csv
coverage run -a -m scrapy crawl hkoweather -o hkoweather.csv
working-directory: hk0weather
- name: Test a scraper of daily weather forecast
run: |
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Scrapy can output collected weather data into the machine-readable formats (eg.

Available Web Crawlers
---
1. **regional**: Hong Kong Regional Weather Data in 10-minutes update from HKO.
1. **hkoweather**: Hong Kong Regional Weather Data in 10-minutes update from HKO.
1. **rainfall**: Hong Kong Rainfall Data in hourly update from HKO.
1. **hkoforecast**: Hong Kong Next 24 hour Weather Forecast Report from HKO Open Data.
1. **hko9dayforecast**: Hong Kong 9-day Weather Report from HKO Open Data.
Expand Down Expand Up @@ -47,7 +47,7 @@ $ scrapy list
Run a regional weather data web crawler and export data to a JSON file.

```
$ scrapy crawl regional -o regional.json
$ scrapy crawl hkoweather -o hkoweather.json
```

References
Expand Down
2 changes: 1 addition & 1 deletion tests/list_tests.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
scrapy list | grep regional > /dev/null
scrapy list | grep hkoweather > /dev/null

0 comments on commit 0d6b1d3

Please # to comment.