Opensource push based API for RSS feed - python

I have checked various Python rss feed parser and it works well. I am able to parse the rss feed result using pulling mechanism.
data_et = feedparser.parse('http://economictimes.indiatimes.com/Markets/markets/rssfeeds/1977021501.cms')
for value in data_et['entries']:
print value['link']
Is there any opensource API with push based mechanism, so rather then I make request to server for updated data, I get notification that new updates are available.
P.S. I dont want mail based or Desktop application based notification. I want it to happen programatically using python

You should look at the PubSubHubbub open protocol which will use a webhook pattern to send you notification when a feed has been updated. Also check Superfeedr which does the same but for any feed.

Related

Automatically Detect Websocket Path (Firebase)

Example URL = https://westgate-production-4cb87.firebaseapp.com/super-contests/weekly-card/embed
I've written the code needed to get this to work with the current deployed websocket URL and successfully scrape the data on this page -
wss://s-usc1c-nss-276.firebaseio.com/.ws?v=5&ns=westgate-production-4cb87
However, it seems that every so often the number in the subdomain will change (in this example - 276). I can obviously manually figure out what the new URL is using the Network tab in Dev Tools, but I was wondering if there was a Python code snippet or some approach where I can programatically detect what websockets are opening so that I can capture the wss:// URL and then pass it into the rest of my code that works correctly.
Thank you!
You're using an undocumented way to access the Firebase Realtime Database.
That first part of the URL is the server that your client is connecting to to access the data, and is actually determined by the first request(s) when the connection is established. But as said, this knowledge is not documented and can thus change at any time without notice.
I'd recommend using either the Python SDK, the REST API, or the REST Streaming API to access the database, as all of those are properly documented.

Open source Whatsapp business API client for python

I have my own Whatsapp business account.
I want to have a client that can:
Alert me when I get a new message
Be able to send an automatic reply based on the original message I've received.
I've searched the web for ready open source python clients I can use and found only one that might be suitable - https://pypi.org/project/wabclient/
The problem - there is no documentation on how to use it, reviews etc.
Are there any other open sources I can use to achieve my goal? Any sample projects that use wabclient?

Amazon MWS - how do I go about using AnyOfferChanged Notification with python

I want to develop an app that sends me an email when pricing offers for specific listings change using the AnyOfferChanged MWS notifications. However, I can't find any good documentation on how to go about receiving the notifications. Is it a must to have AWS SQS, or can I use Django? how do I go about subscribing to a notification?
I already have a developers account and I'm using the python mws library
You need to subscribe to the AnyOfferChangedNotification through the Subscriptions API and yes, it must use SQS. I found it easiest to use the scratchpad to create the subscription, since it's usually a one-time event.
Once your price change notifications start flowing into your queue, write an app that reads the queue and you can respond to your messages, including sending an email if that's what you want to do.
See if these code samples for SQS help you: https://docs.aws.amazon.com/code-samples/latest/catalog/code-catalog-python-example_code-sqs.html

How do your set the twitter byline from an application?

Twitter allows applications to set a "byline" that appears after the tweeter's name, but I don't see how to set that. I'm currently using the Python API tweepy. Any ideas?
How do I get “from [MyApp]” appended to updates sent from my API application?
We now recommend developers use OAuth
to perform authentication with the
API. When applications use OAuth,
Twitter automatically knows the source
of status updates. We are therefore
able to append source attribution
(from "[MyApp]") to tweets. If you
would like tweets from your
application to receive a source
parameter, please register an
application and implement OAuth
authentication. We will automatically
include your application as the source
for any tweets sent from your
application.
We originally allowed applications to
create a source parameter for
non-OAuth use but that has been
discontinued. Applications pre-OAuth
source parameters will remain active,
but new registrations are no longer
accepted.
This FAQ tells you everything.

Monitor Yahoo! Instant Messages in Python?

I am trying to add some security to my computer at home and would like to have a copy of all Yahoo! IMs sent to me. I am using Python 2.6 on Windows.
I would also like to have every URL in Internet Explorer sent to me.
Wireshark has custom filters for chat protocols like yahoo or to filter for all HTTP traffic. I don't know why you would want to filter only IE, its not the most common browser but you could probably filter by user agent. Wireshark can be invoked on the commandline and you can tap into these pre-built filters. You should use python's subprocess module to execute Wireshark.

Categories

Resources