-
Notifications
You must be signed in to change notification settings - Fork 3
Add Supplements spider + integrated crawling/postprocessing #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 6 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
774a7e8
chore(.gitignore): add .DS_Store to ignore list
heroheman aeb4640
feat(spiders): add SCP Supplement spider and item
heroheman b188362
feat(postprocessing): add supplement processing command
heroheman 146435d
docs(README): update supplement crawl instructions and content structure
heroheman 84d709f
fix(spiders): refine tale parsing rules to exclude unwanted links
heroheman 3a21940
feat(ci): add GitHub Actions workflow for SCP crawling
heroheman 166a50b
chore(workflow): adjusted workflow after review
heroheman 49aec69
fix(spiders): update tale parsing rules to allow all links
heroheman d68338f
fix(spiders): enhance error handling in history lookup
heroheman cca296c
chore(workflow): enable workflow_dispatch for SCP crawling
heroheman 4604780
fix(history): improve history processing and error handling
heroheman 45d680b
fix(history): ensure history key always exists in items
heroheman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,92 @@ | ||
| name: Crawl SCP Wiki | ||
|
|
||
| on: | ||
| # workflow_dispatch: | ||
| # schedule: | ||
| # - cron: "0 0 * * *" | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - .github/workflows/scp-items.yml | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| jobs: | ||
| update-main-scp: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: "Clone this Repository" | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| path: scp-api | ||
heroheman marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - name: "Clone the Crawler" | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| repository: heroheman/scp_crawler | ||
| ref: "main" | ||
| path: scp-crawler | ||
heroheman marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - name: "Setup Python" | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: '3.13' | ||
|
|
||
| - name: "Install Crawler" | ||
| working-directory: ./scp-crawler | ||
| run: make install | ||
|
|
||
| - name: "Crawl Titles" | ||
| working-directory: ./scp-crawler | ||
| run: make data/scp_titles.json | ||
|
|
||
| - name: "Crawl Hubs" | ||
| working-directory: ./scp-crawler | ||
| run: make data/scp_hubs.json | ||
|
|
||
| - name: "Crawl Items" | ||
| working-directory: ./scp-crawler | ||
| run: make data/scp_items.json | ||
|
|
||
| - name: "Process Items" | ||
| working-directory: ./scp-crawler | ||
| run: make data/processed/items | ||
|
|
||
| - name: "Crawl Tales" | ||
| working-directory: ./scp-crawler | ||
| run: make data/scp_tales.json | ||
|
|
||
| - name: "Process Tales" | ||
| working-directory: ./scp-crawler | ||
| run: make data/processed/tales | ||
|
|
||
| - name: "Crawl GOI" | ||
| working-directory: ./scp-crawler | ||
| run: make data/goi.json | ||
|
|
||
| - name: "Process GOI" | ||
| working-directory: ./scp-crawler | ||
| run: make data/processed/goi | ||
|
|
||
| - name: "Crawl Supplements" | ||
| working-directory: ./scp-crawler | ||
| run: make data/scp_supplement.json | ||
|
|
||
| - name: "Process Supplements" | ||
| working-directory: ./scp-crawler | ||
| run: make data/processed/supplement | ||
|
|
||
| - name: "Move Files into API" | ||
| run: cp -Rf ./scp-crawler/data/processed/* ./scp-api/docs/data/scp/ | ||
|
|
||
| - name: "Push" | ||
| shell: bash | ||
| run: > | ||
| cd scp-api; | ||
| ./bin/push.sh; | ||
|
|
||
| env: | ||
| GIT_USER: "SCP Bot" | ||
| GIT_EMAIL: "[email protected]" | ||
heroheman marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -105,3 +105,4 @@ venv.bak/ | |
|
|
||
|
|
||
| *.json | ||
| .DS_Store | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.