fetcher.

Fleetcher Python semplice
Scarica ora

fetcher. Classifica e riepilogo

Annuncio pubblicitario

  • Rating:
  • Licenza:
  • BSD License
  • Nome editore:
  • Mutang

fetcher. Tag


fetcher. Descrizione

Semplice Fetcher Python. FETQUER è un semplice modulo Python Fetcher Module.Specific, vedi Caso di prova: #! / usr / bin / en ft Python # codifica: UTF-8da Fetcher Import * da Unittest Import TestCaseMport LoggingDef Test_Fetcher_fetch (): Fetcher = Fetcher () D = Fetcher .Fetch ("http://www.163.com") Assert d.code == 200Def Test_Fetcher_head (): Fetcher = Fetcher () d = fetcher.head ("http://www.163.com") Registrazione .INFO (D) Assert "Content-Type" in D Def Test_charset (): Fetcher = Fetcher () D = Fetcher.fetch ("http://www.taobao.com") Assert "GB2312" == Fetcherutil.Charset (D.Content) DEF Test_Decode (): Fetcher = Fetcher () D = Fetcher.fetch ("http://www.taobao.com") Assert "· " non in D.Content C = Fetcherutil. Decode (D.Content, "UTF-8") Assert "· " in CDEF TEST_IMAGE_FETHER (): Fetcher = ImageFetcher () Images = Fetcher.fetch ("http://www.taobao.com") Assert immagini Requisiti: · Python.


fetcher. Software correlato

Python-tablefu.

Uno strumento per manipolare fogli di calcolo e tavoli in Python, in base al tableFu di propulblica ...

136

Scarica