MCPcopy
hub / github.com/pyload/pyload / write

Method write

module/plugins/hoster/PornhubCom.py:24–35  ·  view source on GitHub ↗

writes response

(self, buf)

Source from the content-addressed store, hash-verified

22 HTTPRequest.__init__(self, cookies=cookies, options=options)
23
24 def write(self, buf):
25 """ writes response """
26 if self.limit and self.rep.tell() > self.limit or self.abort:
27 rep = self.getResponse()
28 if self.abort:
29 raise Abort()
30 f = open("response.dump", "wb")
31 f.write(rep)
32 f.close()
33 raise Exception("Loaded Url exceeded limit")
34
35 self.rep.write(buf)
36
37
38class PornhubCom(SimpleHoster):

Callers 14

loadAccountsMethod · 0.45
saveAccountsMethod · 0.45
decryptCaptchaMethod · 0.45
loadMethod · 0.45
extractMethod · 0.45
dump_htmlMethod · 0.45
_make_tmpfileMethod · 0.45
decrypt_imageMethod · 0.45
run_tesserMethod · 0.45
decrypt_fileMethod · 0.45
package_finishedMethod · 0.45
_update_pluginsMethod · 0.45

Calls 3

AbortClass · 0.85
getResponseMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected