re-arrange proj layout

This commit is contained in:
jiacai_wang 2022-09-27 21:59:33 +08:00
parent feda26eed7
commit 5465d9598e
3 changed files with 3 additions and 5 deletions

View File

@ -5,5 +5,6 @@ steps:
image: python:latest image: python:latest
commands: commands:
- pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple - pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
- cd 花山印象
- pip3 install -r ./requirements.txt - pip3 install -r ./requirements.txt
- python3 ./花山印象/sell_status.py - python3 ./sell_status.py

View File

@ -1,3 +0,0 @@
lxml==4.8.0
openpyxl==3.0.10
requests==2.25.1

View File

@ -27,7 +27,7 @@ for idx, url in enumerate(sell_status_url):
ws['A1'].value = "数据来源" ws['A1'].value = "数据来源"
ws['B1'].value = url ws['B1'].value = url
resp = requests.get(url, headers=headers) resp = requests.get(url, headers=headers, timeout=300)
sell_table = etree.HTML(resp.text).xpath('//*[@id="fwxx"]/table')[0] sell_table = etree.HTML(resp.text).xpath('//*[@id="fwxx"]/table')[0]
# our table starts at A4 # our table starts at A4
table_col = 1 table_col = 1