re-arrange proj layout
This commit is contained in:
parent
feda26eed7
commit
5465d9598e
@ -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
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
lxml==4.8.0
|
|
||||||
openpyxl==3.0.10
|
|
||||||
requests==2.25.1
|
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user