-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from fabianegli/php-to-python-plus-tests
PHP to Python plus tests and stuff
- Loading branch information
Showing
12 changed files
with
642 additions
and
210 deletions.
There are no files selected for viewing
This file contains 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,34 @@ | ||
name: Updates for AI robots files | ||
on: | ||
push: | ||
branches: | ||
- "main" | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
dark-visitors: | ||
runs-on: ubuntu-latest | ||
name: dark-visitors | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
- run: | | ||
pip install beautifulsoup4 requests | ||
git config --global user.name "dark-visitors" | ||
git config --global user.email "[email protected]" | ||
echo "Updating robots.json with data from darkvisitor.com ..." | ||
python code/dark_visitors.py --update | ||
echo "... done." | ||
git --no-pager diff | ||
git add -A | ||
git diff --quiet && git diff --staged --quiet || (git commit -m "Update from Dark Visitors" && git push) | ||
echo "Updating robots.txt and table-of-bot-metrics.md if necessary ..." | ||
python code/dark_visitors.py --convert | ||
echo "... done." | ||
git --no-pager diff | ||
git add -A | ||
git diff --quiet && git diff --staged --quiet || (git commit -m "Updated from new robots.json" && git push) | ||
shell: bash |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -1 +1,4 @@ | ||
.DS_Store | ||
.DS_Store | ||
.venv | ||
venv | ||
__pycache__ |
This file was deleted.
Oops, something went wrong.
This file contains 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
Oops, something went wrong.