Example #1
0
 def _getRawData(self):
     client = HttpClient(
         u"http://apk.hiapk.com/SoftDetails.aspx?action=GetBaseInfo&callback=?&apkId=548861"
     )
     self._rawData = client.get()
     s = self._rawData
     ss = s.split(r"$")
     self._rawData = ss[4]
Example #2
0
 def _getRawData(self):
     client = HttpClient(u"http://soft.crossmo.com/softinfo_34963.html")
     self._rawData = client.get().decode("utf8")
     q = pq(self._rawData)
     count = q("div.aniu dl dd").eq(2)
     # print count
     self._rawData = subString(count.text(), u"下载次数:")
     if self._rawData == None:
         self._msg = "No found"
Example #3
0
 def _getRawData(self):
     client = HttpClient(u"http://soft.crossmo.com/softinfo_34963.html")
     self._rawData = client.get().decode("utf8")
     q = pq(self._rawData)
     count = q("div.aniu dl dd").eq(2)
     # print count
     self._rawData = subString(count.text(), u"下载次数:")
     if self._rawData == None:
         self._msg = "No found"
Example #4
0
 def _getRawData(self):
     client = HttpClient(u"http://www.appchina.com/app/com.mgyun.shua/")
     # html = client.get();
     # print html;
     self._rawData = client.get().decode("utf8")
     # print self._rawData
     q = pq(self._rawData)
     count = q("div.app-info ul.app-attr.fl").eq(1)("li").eq(1)
     # print count.eq(0).text()
     st_data = count.eq(0).text()
     self._rawData = subString(st_data, u"下载次数", u"次")
Example #5
0
 def _getRawData(self):
     client = HttpClient(
         r"http://zhushou.360.cn/detail/index/soft_id/87802?recrefer=SE_D_%E5%88%B7%E6%9C%BA%E5%A4%A7%E5%B8%88"
     )
     self._rawData = client.get().decode("utf8")
     # print type(self._rawData)
     q = pq(self._rawData)
     count = q("dl.clearfix dd").eq(1)("p").eq(1)
     t = count.text()
     # print t, type(t)
     self._rawData = subString(t, u"下载次数:", u"次")
Example #6
0
 def _getRawData(self):
     client = HttpClient(u"http://www.appchina.com/app/com.mgyun.shua/")
     # html = client.get();
     # print html;
     self._rawData = client.get().decode("utf8")
     # print self._rawData
     q = pq(self._rawData)
     count = q("div.app-info ul.app-attr.fl").eq(1)("li").eq(1)
     # print count.eq(0).text()
     st_data = count.eq(0).text()
     self._rawData = subString(st_data, u"下载次数", u"次")
Example #7
0
 def _getRawData(self):
     client = HttpClient(
         r"http://zhushou.360.cn/detail/index/soft_id/87802?recrefer=SE_D_%E5%88%B7%E6%9C%BA%E5%A4%A7%E5%B8%88"
     )
     self._rawData = client.get().decode("utf8")
     # print type(self._rawData)
     q = pq(self._rawData)
     count = q("dl.clearfix dd").eq(1)("p").eq(1)
     t = count.text()
     # print t, type(t)
     self._rawData = subString(t, u"下载次数:", u"次")
Example #8
0
 def _getRawData(self):
     client = HttpClient(u"http://apk.hiapk.com/SoftDetails.aspx?action=GetBaseInfo&callback=?&apkId=548861")
     self._rawData = client.get()
     s = self._rawData
     ss = s.split(r"$")
     self._rawData = ss[4]
Example #9
0
 def get(self, url):
     """提到一个URL的内容"""
     client = HttpClient(url)
     return client.get()
Example #10
0
#!/usr/bin/env python
# -*- coding: UTF-8 -*-

from http.httpclient import HttpClient 

httpc = HttpClient("http://www.sublimetext.com/dev")
resp = httpc.get()
if resp == None:
    print "nothing recived"
else :
    print resp
Example #11
0
 def get(self, url):
     """提到一个URL的内容"""
     client = HttpClient(url)
     return client.get()