mirror of
https://github.com/simon987/vanwanet_scrape.git
synced 2025-04-10 14:06:43 +00:00
fix
This commit is contained in:
parent
10a6a5d4aa
commit
ec03e5e412
5
setup.py
5
setup.py
@ -9,5 +9,8 @@ setup(
|
||||
packages=["vanwanet_scrape"],
|
||||
install_requires=[
|
||||
"requests", "bs4", "hexlib @ git+git://github.com/simon987/hexlib.git",
|
||||
]
|
||||
],
|
||||
package_data={
|
||||
"vanwanet_scrape": ["*.js"],
|
||||
}
|
||||
)
|
||||
|
@ -1,3 +1,4 @@
|
||||
import os
|
||||
import re
|
||||
import subprocess
|
||||
from http.cookiejar import CookieJar
|
||||
@ -6,7 +7,7 @@ import requests
|
||||
from bs4 import BeautifulSoup
|
||||
from hexlib.web import cookie_from_string
|
||||
|
||||
with open("aes.js", "r") as f:
|
||||
with open(os.path.join(os.path.dirname(__file__), "aes.js"), "r") as f:
|
||||
AES = f.read()
|
||||
|
||||
SUB_PATTRN = re.compile(r'document\.cookie="(.+)";location.+$')
|
||||
|
Loading…
x
Reference in New Issue
Block a user