Skip to content

firejq/url2io-python-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL2io Python SDK

This is the URL2io python SDK suite.

API Docs

1. url2io.py

This is the underlying API implementation.

How to use? example:

  1. register and get token
  2. coding

python2.7 version

>>> import url2io
>>> api = url2io.API(token)
>>> # get content and next page link
>>> ret = api.article(url='http://www.url2io.com/products', fields=['next',])
>>> print(ret)
{
    u'content': u'<div><p>\u63d0\u4f9b\u7b80\u5355\uff0c',
    u'date': None,
    u'title': u'URL2io \u4ecb\u7ecd',
    u'url': u'http://www.url2io.com/products'
}

python3 version

>>> import url2io3
>>> api = url2io3.API(token)
>>> # get content and next page link
>>> ret = api.article(url='http://www.url2io.com/products', fields=['next',])
>>> print(ret)
{
    u'content': u'<div><p>\u63d0\u4f9b\u7b80\u5355\uff0c',
    u'date': None,
    u'title': u'URL2io \u4ecb\u7ecd',
    u'url': u'http://www.url2io.com/products'
}

more detial

About

URL2io Python SDK,用于网页信息提取,如正文提取

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 87.3%
  • Python 12.7%