Esempio n. 1
0
 def __init__(self):
     super().__init__()
     self._img_lock = threading.Lock()
     self._headers = {
         "Referer": "http://image.fengniao.com/",
         "Host": "image.fengniao.com",
         "X-Requested-With": "XMLHttpRequest"
     }
     self._start = "http://image.fengniao.com/index.php?action=getList&class_id=192&sub_classid=0&page={}&not_in_id=5356548,5356425,5356337,5356302"
     self._res = hh.helper(headers=self._headers)
     self._idx_lock = threading.Lock()
Esempio n. 2
0
    def __init__(self,urls):
        super().__init__()
        self.__urls = urls
        self.__headers = {"Referer":"https://www.2717.com/ent/meinvtupian/","Host":"www.2717.com"}

        self.__res = hh.helper(headers=self.__headers)
Esempio n. 3
0
 def __init__(self):
     self.__start = "https://www.2717.com/ent/meinvtupian/list_11_{}.html"
     self.__headers = {"Referer":"https://www.2717.com/ent/meinvtupian/","Host":"www.2717.com"}
     self.__res = hh.helper(headers=self.__headers)
Esempio n. 4
0
 def __init__(self):
     super().__init__()
     self._down_lock = threading.Lock()
     self._res = hh.helper()
Esempio n. 5
0
File: test.py Progetto: qxddd/python
# -*- encoding: utf-8 -*-
'''
@File    :   test.py
@Time    :   2019/05/28 17:09:22
@Author  :   qxd 
@Version :   1.0
@Contact :   [email protected]
@Desc    :   test file
'''

import http_help as hh
import json

headers = {"Referer":"http://image.fengniao.com/list_1422.html","Host":"image.fengniao.com","X-Requested-With":"XMLHttpRequest"}
start = "http://image.fengniao.com/index.php?action=getList&class_id=192&sub_classid=0&page={}&not_in_id=5356548,5356425,5356337,5356302"
res = hh.helper(headers=headers)
index = 3
url = start.format(index)
content = res.get_content("http://image.fengniao.com/slide/535/5356289_1.html",charset="gbk")
#json_connent = json.loads(content)
print(content)