Skip to content
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

Save scraper logs in csv #73

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/bitcoinops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,21 @@ jobs:
run: |
mkdir /tmp/data
python bitcoinops/main.py

- name: Configure Git
run: |
git config user.email "${{ secrets.GIT_AUTHOR_EMAIL }}"
git config user.name "${{ secrets.GIT_AUTHOR_NAME }}"

- name: Add and commit changes
run: |
git add .
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "bitcoinops: updated scraper logs"
git push
fi
env:
ES_ENGINE: ${{ secrets.ES_ENGINE }}
ES_URL: ${{ secrets.ES_URL }}
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/bitcointalk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,21 @@ jobs:
run: |
mkdir /tmp/data
python bitcointalk/main.py

- name: Configure Git
run: |
git config user.email "${{ secrets.GIT_AUTHOR_EMAIL }}"
git config user.name "${{ secrets.GIT_AUTHOR_NAME }}"

- name: Add and commit changes
run: |
git add .
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "bitcointalk: updated scraper logs"
git push
fi
env:
ES_ENGINE: ${{ secrets.ES_ENGINE }}
ES_URL: ${{ secrets.ES_URL }}
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/bitcointranscripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,21 @@ jobs:
run: |
mkdir /tmp/data
python bitcointranscripts/main.py

- name: Configure Git
run: |
git config user.email "${{ secrets.GIT_AUTHOR_EMAIL }}"
git config user.name "${{ secrets.GIT_AUTHOR_NAME }}"

- name: Add and commit changes
run: |
git add .
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "bitcointranscripts: updated scraper logs"
git push
fi
env:
ES_ENGINE: ${{ secrets.ES_ENGINE }}
ES_URL: ${{ secrets.ES_URL }}
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/delving-bitcoin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@ jobs:
- name: Fetch data
run: |
python delvingbitcoin_2_elasticsearch/delvingbitcoin_2_elasticsearch.py

- name: Configure Git
run: |
git config user.email "${{ secrets.GIT_AUTHOR_EMAIL }}"
git config user.name "${{ secrets.GIT_AUTHOR_NAME }}"

- name: Add and commit changes
run: |
git add .
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "delving-bitcoin: updated scraper logs"
git push
fi
env:
ES_ENGINE: ${{ secrets.ES_ENGINE }}
ES_URL: ${{ secrets.ES_URL }}
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/mailing-list-bitcoin-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@ jobs:
- name: Fetch data
run: |
python mailing-list/main.py

- name: Configure Git
run: |
git config user.email "${{ secrets.GIT_AUTHOR_EMAIL }}"
git config user.name "${{ secrets.GIT_AUTHOR_NAME }}"

- name: Add and commit changes
run: |
git add .
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "mailing-list-bitcoin-new: updated scraper logs"
git push
fi
env:
ES_ENGINE: ${{ secrets.ES_ENGINE }}
ES_URL: ${{ secrets.ES_URL }}
Expand Down
37 changes: 28 additions & 9 deletions .github/workflows/stackexchange.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,44 @@ on:
jobs:
fetch:
runs-on: ubuntu-latest

env:
DATA_DIR: /tmp/stackexchange
ES_ENGINE: ${{ secrets.ES_ENGINE }}
ES_URL: ${{ secrets.ES_URL }}
ES_TOKEN: ${{ secrets.ES_TOKEN }}
CLOUD_ID: ${{ secrets.CLOUD_ID }}
USER_PASSWORD: ${{ secrets.USER_PASSWORD }}
USERNAME: ${{ secrets.USERNAME }}
INDEX: ${{ secrets.INDEX }}

urvishp80 marked this conversation as resolved.
Show resolved Hide resolved
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt

- name: Fetch data
run: |
mkdir /tmp/stackexchange
python bitcoin.stackexchange.com/main.py
env:
DATA_DIR: /tmp/stackexchange
ES_ENGINE: ${{ secrets.ES_ENGINE }}
ES_URL: ${{ secrets.ES_URL }}
ES_TOKEN: ${{ secrets.ES_TOKEN }}
CLOUD_ID: ${{ secrets.CLOUD_ID }}
USER_PASSWORD: ${{ secrets.USER_PASSWORD }}
USERNAME: ${{ secrets.USERNAME }}
INDEX: ${{ secrets.INDEX }}

- name: Configure Git
run: |
git config user.email "${{ secrets.GIT_AUTHOR_EMAIL }}"
git config user.name "${{ secrets.GIT_AUTHOR_NAME }}"

- name: Add and commit changes
run: |
git add .
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "stackexchange: updated scraper logs"
git push
fi
Loading