fetchrss.com api的简单接口

fetchrss-api的Python项目详细描述


fetchrss api:fetchrssapi的python客户端库

安装

来自Python Package Index

pip install fetchrss-api

直接从github上的git存储库:

pip install git+https://github.com/Impacto-jor/fetchrss-api.git

git clone https://github.com/Impacto-jor/fetchrss-api.git
cd fetchrss-api
python setup.py install

在Python3.7.0上测试(通过安装dataclasses,您可以使用3.6运行 包装)。

用法

通过示例学习:

fromfetchrssimportFetchRSS# Instantiate the objectapi=FetchRSS(access_token="<super secret>")# Create a new feed using URL onlyfeed=api.feed_create(url="https://some-url/")print(f"Feed created: {feed}")# Create a new feed using all parametersfeed=api.feed_create(url="https://some-url/",news_selector="<news selector>",title_selector="<title selector>",content_selector="<content selector>",pic_selector="[optional picture selector]",date_selector="[optional date selector]",author_selector="[optional author selector]",link_selector="[optional link selector]",pic_src_param="[optional picture source parameter]",date_format_param="[optional date format parameter]",)print(f"Feed created: {feed}")# List all available feedsforfeedinapi.feeds():print(feed)# Get RSS entries for a specific feedforentryinapi.rss(feed):print(entry)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java有没有工具可以将zephyr转换为velocity模板?   java在安卓 studio中从JSON响应中获取值   jvm如何在Java中设计一个好的permgen空间字符串?   java如何防止Rest webservice使用被盗令牌进行身份验证   java无法遍历列表JSTL   找不到用于ResourceServerTokenServices的java Bean SpringSecurityOauth2   java子字符串替换问题   爪哇玻璃鱼3。十、 以编程方式处理任意HTTPSession的终止   java如何检查输入是否为整数,并在最后添加一个命令来重新启动while循环?   引发java ical4j 1.0.6不可解析日期异常   Java等价于Delphi的DBCtrlGrid?   如果发生错误,java将查找下一个预期标记ANTLR 3   java自打开应用程序(创建锁屏)   java为什么netty有自己的ConcurrentHashMap?   Gradle任务中的java拉取和运行依赖项   继承与Java继承的混淆   java使用shell脚本中的版本执行jar   java我无法让Sqlite数据库与带有Maven的JavaFX应用程序IDE Eclipse包正确通信   java控制台日志未通过org打印。阿帕奇。hadoop。mapreduce。作业的waitForCompletion(true)方法   JAVAlang.NoSuchMethodError:apachestorm螺栓中的spring getrequest