mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-11-22 07:19:34 +01:00
the end.
This commit is contained in:
parent
5ddd778e2e
commit
4a422db809
2 changed files with 6 additions and 5 deletions
|
@ -27,17 +27,17 @@ jobs:
|
|||
pip install -r requirements.txt
|
||||
|
||||
- name: Generate/update file with links.
|
||||
env:
|
||||
OUTPUT_FILENAME: "tracked_links_ci.txt"
|
||||
run: |
|
||||
python make_tracked_links_list.py
|
||||
|
||||
- name: Commit and push changes.
|
||||
run: |
|
||||
git pull
|
||||
git add .
|
||||
|
||||
git stash
|
||||
git checkout data
|
||||
git stash pop
|
||||
|
||||
mv tracked_links_ci.txt tracked_links.txt
|
||||
|
||||
git config --global user.email "github-action@users.noreply.github.com"
|
||||
git config --global user.name "GitHub Action"
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import os
|
||||
import asyncio
|
||||
import logging
|
||||
import re
|
||||
|
@ -45,7 +46,7 @@ RELATIVE_LINK_REGEX = r'\/([-a-zA-Z0-9\/@:%._\+~#]{0,249})'
|
|||
|
||||
DOM_ATTRS = ['href', 'src']
|
||||
|
||||
OUTPUT_FILENAME = 'tracked_links.txt'
|
||||
OUTPUT_FILENAME = os.environ.get('OUTPUT_FILENAME', 'tracked_links.txt')
|
||||
|
||||
# unsecure but so simple
|
||||
CONNECTOR = aiohttp.TCPConnector(ssl=False)
|
||||
|
|
Loading…
Reference in a new issue