Mercury解析器Web API
mercury-parserp的Python项目详细描述
设置
从命令行:
pip install mercury-parserpy
用法
frommercury_parser.clientimportMercuryParserparser=MercuryParser(api_key='YOUR API KEY')article=parser.parse_article('ARTICLE_URL')article.json()# parse multiple articles urls return a JSON# where the key is the article urlarticles=parser.parse_multiple_articles(*ARTICLES_URLS)