|
@@ -1,14 +1,14 @@
|
|
1
|
+# -- coding: utf-8 --**
|
1
|
2
|
import requests,json,random,execjs,uuid
|
2
|
3
|
from urllib import parse
|
3
|
4
|
from urllib.parse import quote
|
4
|
5
|
|
5
|
|
-# -- coding: utf-8 --**
|
6
|
6
|
class WebDouYin:
|
7
|
7
|
def __init__(self):
|
8
|
8
|
self.proxies = {
|
9
|
9
|
}
|
10
|
10
|
def get_signature(self,url=None,method='_signature'):
|
11
|
|
- with open('./signature.js', 'r', encoding='utf-8') as f:
|
|
11
|
+ with open('/mnt/shop_live_scraper/signature.js', 'r', encoding='utf-8') as f:
|
12
|
12
|
b = f.read()
|
13
|
13
|
|
14
|
14
|
c = execjs.compile(b)
|