向GNU Social发布订阅。

gnusrss的Python项目详细描述


`gnusrss <#gnusrss>`__
`English <#english>`__

- `About <#about>`__
- `Features <#features>`__
- `Requirements <#requirements>`__
- `Git repository <#git-repository>`__
- `Install <#install>`__
- `Configuration <#configuration>`__
- `Crontab <#crontab>`__
- `Use with twitter2rss and/or GNU
Social <#use-with-twitter2rss-and/or-gnu-social>`__
- `License <#license>`__

`Castellano <#castellano>`__

- `Acerca de <#acerca-de>`__
- `Features <#features>`__
- `Requisitos <#requisitos>`__
- `Repositorio git <#repositorio-git>`__
- `Instalación <#instalación>`__
- `Configuración <#configuración>`__
- `Crontab <#crontab>`__
- `Uso con twitter2rss y/o GNU
Social <#uso-con-twitter2rss-y/o-gnu-social>`__
- `Bugs <#bugs>`__
- `Licencia <#licencia>`__

1 gnusrss
---------

1.1 English
~~~~~~~~~~~

1.1.1 About
^^^^^^^^^^^

gnusrss parse feeds and post them to GNU Social. The idea of the program came from ` spigot<;https://github.com/nathans/spigot>;` uu,a program that posts feeds to the social network ` pump.io<;https://pump.io>;` uu as does gnusrss but better,because it controls the possible flood.如果没有这样的选择,而且这一选择也将被管理与这一时限(为现在)一起
1.1.2 Features<>>BR/>1.1.2 Features<>>BR/>@@@@<<<<>>>>>>>>>>>>>>多倍倍倍增加的feed和GNU社会帐户的支助>>>BR<<<>>>>>>>您将使用这一种方法,使人们能够从现在开始,并从现在起,从现在起,从现在起,从现在起,到现在起,从现在起,从现在起,到现在起,从这一他是耶稣,他是耶稣。当我们使用` Twitter2RSs<,http://daemons.cf/cgit/twitter2rss>;>>>>U U U U.1.3 Requirements<>BR/>U@@@@@@@@@@@@@@@@@@<<<>>>>最迟至最迟至最迟至最迟至最迟至最迟至最迟至最迟至最迟至最迟至>Feedparser<;//pypi.pyton.org/pypi/feedparser>;`_ >= 5.0

- `requests <https://pypi.python.org/pypi/requests/2.11.1>`_ >= 2.11.1

1.1.4 Git repository
^^^^^^^^^^^^^^^^^^^^

It's in two places:

- `http://daemons.cf/cgit/gnusrss <http://daemons.cf/cgit/gnusrss>U:最初的处置库
>>>BR/>https://notabog.org/drymer/GNUSRSS/<;https://notabg.org/drymer/gnusrss/>;` U:一个Mirror in which it can be put Issues and Feature Requests
1.5 instalinstall via pip:

>Code-Block:BR/>lines:0
PIP3 install gnusrss:

Clone the Repository:
>6.Code-Block:Code-Block:<0
<0
Git Clone Git http://daems.cf/GNUSRSS
35>35>或
Git Clone https http://notbug.org/Drymer/GNUSRSS/
$Su-C"Pi3 instal-R rerequiremes.txt"6 6 6 6 6 6 6 6 6 6 6月6日至至至至至至6 6 6月6日为止为止为止为止为止为止为止为止为止为止,你们的"在你们的最新设设设设设设了一个"的"PYNNNN3,包括包括包括包括包括包括包括3如果,如果,如果对,对,对,对,对Code-Block:br/>lines:0<0>su-c"pacman-s gnusrss"
su-c>pacman-s gnusrss
br/>1.1.6 preparatione>Running the following,should show the basics:

。6.Code-Block:BR/>0<0
<0<0>美元GNUSSSS比
Usge:GNUSRS[H][-C File e U U name][-C][-P]]][-K file[UFile name]]]]
Post Fees to GNU Social>>>这一种种种种种种种种种种种种种种种种种种种种种他是耶稣。-c file@u name@create-config file@u name@br/>c,create-db creates the database
c,create-db creates the database@br/>p config@file,post config@ufile
posts feeds
-k文件名,--填充数据库文件名
获取rss并将其保存在数据库中

在任何情况下,如果不清楚,请阅读以下内容。

这可以使用相同的命令完成,例如:

…代码块::sh
:数字行:0

$gnusrss.py--create db--create config守护进程

,然后它会问几个问题来创建第一个配置文件。应该是这样的:

…代码块::文本
:数字行:0

数据库已创建!
嗨!现在我们将创建配置文件!
请输入源的url:https://daemons.cf/rss.xml
请输入您的用户名(user@server.com):drymer@quitter.se
请输入您的密码:false password
是否需要缩短您发布的url?请考虑到
只有在节点只有140个字符时才应该使用它。
回答"是"或者如果不想使用,只需按回车键:
请输入源的回退URL。如果您不想要或没有,只需按回车键:
现在我们就可以取饲料了。请稍候……
完成!标签是:
标签
标题详细信息
链接
作者
链接
作者详细信息
已发布的已分析
标题
摘要
id
作者
已发布
指南链接
summary_detail
XML已被解析。选择所需的wich格式:
请将标记放在方括号中
例如:{title}-{link}by@{author}:{title}-{link}by@{author}
是否允许与GNU社交服务器的不安全连接?
回答"是",如果不想使用,请按回车键:
是否要填充数据库?(y)还是你更喜欢邮寄旧物品?(n)

文件以"daemons.ini"的名称保存。应该是这样的:

…代码块::text
:数字行:0

[feeds]
feed=https://daemons.cf/rss.xml
user=drymer@quitter.se
password=false password
shorten=
fallback\u feed=
format={title}-{link}by@{author}

您需要的配置文件。
在创建上述文件时,它会将到目前为止所有的提要放入数据库。因此,当第一次运行**gnusrss**时,在feed有新信息之前,它不会向gnu social发布任何内容。
要从一个具体的配置文件发布feed或全部执行feed,分别执行以下操作:

代码块::sh
:数字行:0

$gnusrss.py-p守护进程.ini
$gnusrss.py-p

如果配置文件是手动创建的,并且用户不想发布所有提要的内容,只需使用--populate database选项将其保存到数据库:

。代码块::sh
:数字行:0

$gnusrss.py-k otherfile.ini

<1.1.7 crontab
^^^^^^^^^^^^^^

每次运行时,都会发布一条feed以防止洪水泛滥。根据发布的源的数量,您应该选择不同的运行时。对于一个每天发布一次的博客,可以使用以下内容:

…代码块::sh
:数字行:0

$crontab-e
但是,如果它与"twitter2rss<;http://daemons.cf/cgit/twitter2rss/>;"一起使用,则建议每五分钟运行一次。必须记住,在创建数据库的目录中运行是很重要的,因为它将在其中搜索数据库。

1.1.8与twitter2rss和/或gnu social一起使用,它的工作方式与任何feed一样,除了已发布的字段。在两者中,您都必须选择`{summary}`。配置文件示例如下:

…代码块::text
:数字行:0

[feeds]
feed=https://quitter.se/api/status/user_timeline/127168.atom
user=drymer@quitter.se
password=false password
shorten=
fallback_feed=
format={summary}

通过查看所需帐户页的源代码来实现。对于"twitter2rss<;http://daemons.cf/cgit/twitter2rss>;`` u,您可以托管它,也可以使用这个"web"<;http://daemons.cf/twitter2rss>;` ` `.

<1.1.9许可证
^^^^^^^^^^^^^^^^^^^^^^^^^^^

代码块::文本
:编号行:0
BR/>此程序为自由软件:您可以重新发布和/或修改
根据GNU通用公共许可证的条款,由BR/>自由软件基金会发布,许可证的第3版,或
(由您选择)任何更高版本。

本程序的发布目的是希望它会有用,
但没有任何保证;甚至没有针对特定用途的适销性或适用性的暗示保证。有关详细信息,请参阅gnu通用公共许可证。

如果没有,请参阅<;http://www.gnu.org/licenses/>;


1.2 castellano
~~~~~~~~~~~~~~~~

1.2.1 acerca de
^^^^^^^^^^^^^^^^^^^^

gnusrss parsea feeds y los postea en gnu social。La idea de hacer este programa surgióde`spigot<;https://github.com/nathans/spigot>;``,UN programa que postea feeds en la red social`pump.io<;https://pump.io>;``igual que hace gnusrss pero mejor,ya que controla el posible flood.gnusrss没有tiene esta opción y se controlarácon el propio crontab(de momento)。


1.2.2功能
^^^^^^^^^^^^^^^^^^^^

-soporta m_ltiples feeds y cuentas de gnu social

-sqlite3 es usado para guardar feeds

-se puede usar tanto archivos rss cómo url不必要的

-soporta la s_bida de imágenes de twitter cuando es usado en congent con`twitter2rss<;http://daemons.cf/cgit/twitter2rss>;`


<1.2.3需求

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ ^ ^


necesita una version on on on de python-una de python-super a a 3 y algunas algunas librerias:
-`feedparser<;https://pypi.pypi/feedparser>;==5.0
>
>>
-`requests<;https://pypi.pypi.pypi.pypi.pypypypypython.org/pypi.">;=2.11.1



^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ ^




<2.11.1
=2.11.11
=2.11.11





instalar usando pip:

…代码块::sh
:数字行:0

$su-c"pip3 install gnusrss"


clonar el repositorio:

…代码块::sh
:数字行:0

o…
$git clone https://notabug.org/drymer/gnusrss/
$cd gnusrss
$su-c"pip3 install-r requirements.txt"
$su-c"python3 setup.py install"

si se usa抛物线:

…代码块::sh
:数字行:0

$su-c"pacman-s gnusrss"

1.2.6配置
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

el程序(o debería ser)相当直观。如果您已经注册了,请先登录。6.Code-Block:BR/>0<0
<0<0>美元GNUSSSS比
Usge:GNUSRS[H][-C File e U U name][-C][-P]]][-K file[UFile name]]]]
Post Fees to GNU Social>>>这一种种种种种种种种种种种种种种种种种种种种种他是耶稣。-C file@u name@create-config file@u name@br/>creates a config file
c,,create-db creates the database
p config@file,@post config@ufile
posts feeds
在任何情况下,如果不清楚的话,应为第一次使用创建一个数据库和第一个配置文件,并为第一次使用创建一个数据库和第一个配置文件,以便携文件、人口数据库和第一个配置文件。我们可以按照同样的顺序这样做,比如说:Code-Block:BR/>lines:0
<0>Gnurss.py—create-db—create-config daemons
然后他将提出一些问题,以配置第一个配置文件。Code-Block::Text
lines:0
database created!嗨!!!现在,我们要创建的信任文件!
Please introduce the feed's URL:https://daemons.cf/rss.xml
Please introduce your username(user@server.com):drymer@quitter.se
Please introduce your password:false密码
1}do you need to shorten the url s that you post?Please take in account
that you should only use it if your node only has 140 characters.
answer with"yes"or just press enter if you don't want to use it:
2}Please introduce your feed's fallbackurl.如果你不想,或者你有一个,
Just press enter:
Now we're gona fetch the feed.请等一下…。The tags are:
tags
title/>titlelink
authors
links
author>detail
published>简表@U Detail@br/>The XML has been parsed.Choose Wich Format you want:
3}Please put the tags inside the square brackets
ex:{title}{link}by@author}{title}{link}by@{author}
4}Do you want to allow insecure connection to your gnu social server?
Answer with"yes"or just press enter if you don't want to use it:
{5}Do you want to populate the database?或者你更喜欢以后的项目?然后我用方括号内的数字来翻译这些线。你需要缩短你要写的URL吗?请注意,只有在服务器只有140个碳汇的情况下才应使用。请输入您的紧急反馈。如果你没有,请只按Enter。
3}请把标签放在方括号内。
4}你想让您的GNU社交服务器有不安全的连接吗?回答"是"还是只要按Enter键,如果你不需要它的话。还是你想发表旧文章?关于3,应检查RSS的源代码,以确定它们对哪些源代码感兴趣。总的来说,这方面的例子是所寻求的。在案例4中,只有在服务器使用自动签名证书

时,该文件才有用。在所有这些问题之后,它应该看起来类似于这个:
。6.Code-Block:<0
<0<0
<<User=Drymer@quitter.se
pasword=假密码
<布尔/>fallback<联合国格式{从{从>到>从{从>到{从>到{从>到>从>>>>从{联合国>>>>>Insecure>可以创造在创建了先前的文件之后,到目前为止所使用的所有标准电子格式都已输入到数据库中。因此,当执行时,**GNUSRSS,**第一次,它不会在GNU social上发布任何东西,除非FEED有新的信息。
发一个或所有文件的报价,分别执行以下内容:

。如果配置文件是手工制作的,且不想张贴标准电子格式的内容,则只需执行选择-Populate-Database将这些文件保存在标准电子格式中,而不需执行选择-Populate-Database将其保存在标准电子格式中。数据库:

。密码布洛克:密码,密码,密码,密码,密码,密码,密码,密码,密码,密码,密码,密码,密码,密码,密码,密码,密码,密码,密码,密码,密码,密码,密码,密码,密码,密码,密码,密码,密码每次执行时,都会发布一个标准电子格式元素,以避免浮游生物。根据联合国标准电子格式发布的数量,应当选择不同的执行时间。对于一个每天出版一次的博客,加上以下内容,它应该是有价值的:Code-Block:BR/>lines:0
Crontab-E
35>;打开一个档案,输入以下内容:
12**~ Rutadegnurss&Amp;&Amp;GNUSRSS.p y-p daems.cf
每天上午12时都在运行。如果我们用"Twitter2rss<;http://daemons.cf/cgit/twitter2rss/>;'uu,建议每五分钟执行一次。必须记住,在创建数据库的目录中执行这项工作是非常重要的,因为在那里,他将搜索数据库,因为在那里,他将使用Twitter2rss和(或)GNU social<>的Twitter2rss和(或)GNU(或)social<的,这就是为什么他将在目录中执行这项工作,因为他将在那里寻找数据库。它的工作原理和任何其他的感觉一样。除了公布的领域之外在这两种情况下,我们都必须作出选择。配置文件的例子是:

。Code-Block:<0
<0
<0>>>>>>>>Feed=https://quitter.se/api/statuses/user/Timeline/127168.Atom
User=Drymer@quitter.se
pasword=假密码
Shoten从现在开始,从现在起,到到现在为止,这一步步步步,{\{\{\{\{\{\{\{\{\{\>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>到>>>>>>>>>>>>>>您要发布帖子的论坛是一个您可以通过查看您想要的帐号页面的源代码来获取。` Twitter2rss<;http://daemons.cf/cgit/twitter2rss>;` uu,can host or be used this ` web<;http://daemons.cf/twitter2rss>;'不建议在使用140个carcarcare的节节点上使用它,因为在网站上增加了一个符号,即"985151";这将使140个CarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCare的一个网点不被贴上,因为这将使一个140 CarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCarCar您所选择语言的Code-Block::Text
:number-lines:0
BR/>this program is free software:you can reducte it and/or modify
it under the terms of the GNU general public license as published by
the Free Software Foundation,either version 3 of the license,这一方案是在希望这一方案将被利用的情况下,在没有任何沃伦的情况下,但在没有任何被遗弃的沃伦的情况下,就一个特定的目的而言,它是一个可供选择的方案。See the
GNU general public license for more details.
BR/>you should have received a copy of the GNU general public license
along with this program.If not,see<;http://www.gnu.org/licenses/>;.

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

推荐PyPI第三方库


热门话题
Linux的java字符串命令   java parseInt和viewflipper布局问题   java正则表达式来平衡括号   mysql与数据库的Java连接   java将JFreeChart系列名称映射到系列索引   多线程如何使用信号量在Java中对哲学家进行编码?   oop特殊变量“this”如何准确地知道在JAVA程序中引用哪个对象?   Android上的java getType   当前值/单元格POI上的java Excel公式   代码中有错误(java.awt.image.RasterFormatException)   java改造2,参数转换   未找到java JSF 2 Ajax属性   JAVArmi。服务器在OpenJDK 8中,useCodebaseOnly默认为true   java如何用final实现静态?   对付Java语法冗长的最佳IDE宏工具?   java@Transactional不回滚