The story about why and how I made for myself a
robot that publishes microtsyaty with
bash.org.ru , fully fit into the tweet. And also about how I will develop it, if the topic on Habré has an effect, and the number of subscribers will make it clear that this is interesting not only for me.
What for
Sometimes quotes from bashorg appear in my twi-tape. There have been cases when particularly remarkable quotes were voiced at once by several tviplami in turn.
I went to check if bashorga has twitter. After all, if you read a bash and use Twitter, it would be right to catch it and retweet what you liked, without bothering to add information about the source (“tse bash”, etc. - otherwise they will be considered as the author). It is even possible to not enter bash.org.ru itself and thus fence oneself from sticking in the Abyss.
Twitter found something (@
b_o_r ). But there is nothing to read, because Most quotes exceed 140 characters and contain only the beginning and a link to the sequel. To click or tap every time you want to know how it all ends is a dubious pleasure. (However, 9,800 people are now subscribed to this twitter ...)
')
And what about the minority - quotes that do not exceed 140 characters? Because of the export settings, even they almost always turn into tweets with a sequel.
For example:
«Ksenya Gavrilova: . , - »
«Ksenya Gavrilova: . , - »
- turns into
« #412428: Ksenya Gavrilova: . , -... http://bit.ly/pAlimr»
« #412428: Ksenya Gavrilova: . , -... http://bit.ly/pAlimr»
.
« #412428: Ksenya Gavrilova: . , -... http://bit.ly/pAlimr»
In general, sheer sorrow, not Twitter bashorga.
how
With the help of the service
, the yahu-pipes , which he used for the first time, made the following pipe:
1. Imported rss bashorga.
2. In quotation texts, the line break tag is replaced with
«/ »
. Ugly, of course, but the end of the first phrase and the beginning of the second one are somehow separated, and not like on the official twitter:
«xxx: ?yyy: xxx: ?;)yyy: ?»
3. The main thing that makes yahu-pipes is filtering by quotation length. The output is a slightly improved and greatly reduced rss stream.
Further, the service
twitterfeed.com (it uses it and @b_o_r, by the way) publishes entries from rss to twitter. He does this every half hour, if there is something unpublished, one entry. You can configure to dump all that has accumulated at once. But I think that occasionally please subscribers during the day - better than the short-term occupation of their Twi-tapes.
It turned out @
microbash .
The user name is “© Bash”, so everyone who sees his message in his feed will understand that this is “tash bash”, and not something else. In the info there is a link to the source - bash.org.ru.
At first, I connected a service to microbash that allowed us to automatically follow all new subscribers. I thought: the robot doesn’t care, but people are pleased. But then mass-trappers and all kinds of CMM experts, most of them not even Russian-speaking, led by other tricky services, came running, and auto-fishing had to be turned off, because I want the number of subscribers to reflect real interest.
What's next
More complex transformations. For example:
xxx:
xxx: , ,
xxx:
This is essentially a monologue. It makes no sense to repeat the name of the author in each line, and the name itself is not, therefore,
xxx:
can be deleted. Since everything will be displayed in one line, it is better to separate the phrases, placing dots at the end where there is no punctuation mark, and translating the first letter of the phrase to the upper case where it should be. Voila:
— . , , . .
In principle, a dash with a space at the beginning and a dot at the end of the phrase are for beauty, and can be sacrificed if a couple of characters are not enough to publish the quotation.
Here is an example of a dialogue:
xxx:
yyy: ? ?
xxx:
xxx:
After its processing, you get this:
— . — ? ? — .
If you wish, you can publish quotes more genuinely (up to 278 characters), breaking them up into 2 tweets, in which the arrows show where the continuation or beginning is. Both tweets are published immediately so that subscribers in their feeds can see them nearby. For example:
. , - . : - ↓
↑ ? : - 5 . : - . ? : - .
The goal of all these transformations is to get more quotes tweeting. And as a bonus - to make it easier to read on Twitter.
Instead of conclusion
Actually, there are still relatively few subscribers to bother with the implementation of the ideas described above (you can’t do anything with services here). But if interest in @
microbash grows, all this can be done.
With ideas, criticism and words of approval - well in the comments.