mirror of
https://github.com/simon987/vanwanet_scrape.git
synced 2025-04-20 02:46:42 +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"],
|
packages=["vanwanet_scrape"],
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"requests", "bs4", "hexlib @ git+git://github.com/simon987/hexlib.git",
|
"requests", "bs4", "hexlib @ git+git://github.com/simon987/hexlib.git",
|
||||||
]
|
],
|
||||||
|
package_data={
|
||||||
|
"vanwanet_scrape": ["*.js"],
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import os
|
||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
from http.cookiejar import CookieJar
|
from http.cookiejar import CookieJar
|
||||||
@ -6,7 +7,7 @@ import requests
|
|||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
from hexlib.web import cookie_from_string
|
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()
|
AES = f.read()
|
||||||
|
|
||||||
SUB_PATTRN = re.compile(r'document\.cookie="(.+)";location.+$')
|
SUB_PATTRN = re.compile(r'document\.cookie="(.+)";location.+$')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user