Skip to content

Commit 8d9c0bd

Browse files
committed
Merge branch 'zyte'
2 parents d2f3e47 + 4281c05 commit 8d9c0bd

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

.github/workflows/update-events-data.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,6 @@ jobs:
6060
with:
6161
python-version: '3.11'
6262

63-
- name: Cache session file
64-
uses: actions/cache@v4
65-
with:
66-
path: backend/session-${{ secrets.USERNAME }}
67-
key: ${{ runner.os }}-instaloader-session-${{ secrets.USERNAME }}
68-
6963
- name: Cache pip
7064
uses: actions/cache@v4
7165
with:
@@ -75,12 +69,12 @@ jobs:
7569
${{ runner.os }}-pip-
7670
7771
- name: Cache Instaloader session
78-
uses: actions/cache@v3
72+
uses: actions/cache@v4
7973
with:
8074
path: .insta_cache
81-
key: insta-session-${{ hashFiles('**/requirements.txt') }}
75+
key: ${{ runner.os }}-instaloader-session-${{ secrets.USERNAME }}
8276
restore-keys: |
83-
insta-session-
77+
${{ runner.os }}-instaloader-session-
8478
8579
- name: Install dependencies
8680
working-directory: backend
@@ -103,7 +97,7 @@ jobs:
10397
if: always()
10498
uses: actions/upload-artifact@v4
10599
with:
106-
name: scraping-logs-${{ github.run_number }}
100+
name: logs-${{ github.run_number }}
107101
path: |
108102
backend/scraping/logs/
109103
backend/scraping/*.log
@@ -114,7 +108,6 @@ jobs:
114108
id: generate_static
115109
working-directory: backend/scraping
116110
run: python generate_static_data.py
117-
118111

119112
- name: Commit and push changes
120113
if: steps.generate_static.outcome == 'success'

backend/scraping/logging_config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
logging.getLogger("urllib3").setLevel(logging.WARNING)
1010
logging.getLogger("requests").setLevel(logging.WARNING)
11+
logging.getLogger("botocore").setLevel(logging.WARNING)
12+
logging.getLogger("httpcore").setLevel(logging.WARNING)
1113
logging.basicConfig(
1214
level=logging.DEBUG,
1315
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",

0 commit comments

Comments
 (0)