Watching LinkedIn Stream Continuously - linkedin

I want to continuously listen to LinkedIn stream watching for users' activity such as adding connection, writing new posts, etc. It's just like watching the Twitter stream to look for certain tweets. How is this possible? Any API? Need help plz. If its paid API, I am ready to have it.

Related

How to build in app notification service?

I'm learning backend and API development and trying to understand how to implement some features from scratch without using any paid third party service.
I want to understand this concept from design as well as implementation pov. Please share if you have any resources where I can learn how to code the below service.
How to build in app notification service like one of these from scratch ?
Notification when user likes or comments on a post (Instagram, Twitter)
Notification when someone views your profile (Linkedin)
Notication when a channel you are subscribed to uploads a video (Youtube)
These are different from push notifications like
Notification when someone sends you a message (All chat apps)
Live status via notification of your delivery (Food delivery apps)
Push notifications need not be stored permanently in any database but what happens with in app notifications? How to build such service which is scalable too.
One possible solution I could think of is this, for notification on post like
User A has made a post.
User B likes their post.
From likePost API emit an event which will notify User A that User B liked their post, listen for these real time events on client side. This can be done via sockets.
Do not store any notifications in database, just update the notifications in UI on that event emitted by likePost API or listen to real time changes in likes attribute of a User's Post table (is this possible?) and update UI.
In UI just show all such notifications by fetching from likes and comments table.
But I wonder how scalable is this approach.
I searched but couldn't find any good resources regarding this, so please if anyone could explain this or provide link to any blog or videos it will be helpful.
(P.s. I'm an undergrad student and don't have experience in system design and architectures, just started learning about these so just curious)
Thanks.
apps like Facebook, Instagram and linkedIn provides web hook of notifications. Webhooks allow you to receive real-time HTTP notifications for subscribed events. This functionality is only available for applications with an approved use case for webhooks. Webhhook received as a notification when user comment on your post or like your post, a web hook can be used to retrieve the information of post, comment and commentor etc.
I am attaching a reference of LinkedIn web-hook.
https://learn.microsoft.com/en-us/linkedin/shared/api-guide/webhook-validation

How to send large files through Telegram Bot?

I've been working on a bot that would send users videos (mostly larger than 500mb).
I've read the telegram bot api docs. There is a restriction of 50MB, with videos/animations/documents.
In the recent changes, Telegram announced now bots can send files upto 2000 MB.
I'm using Python Telegram Bot wrapper. I've tried to send videos using both from direct url and from directory. But it fails and shows the file size limitation error.
I also tried with get requests to Telegram Bot API. It failed.
There are many bots that are uploading files upto 2GB, So, my question is how to do it?
As pointed by #valijon in this answer you could also try to send files through InputStream, http url and cached file IDs. Also, I'd recommend you to take a look at Pyrogram:
# Keep track of the progress while uploading
def progress(current, total):
print(f"{current * 100 / total:.1f}%")
app.send_video("me", "video.mp4", progress=progress)

Youtube API - is there a way to get real-time information about youtube channels like new video being uploaded?

I am trying to build an application that does something every time a new video is uploaded to one or more channels.
My search lead me to the Youtube Data API V3. This is a push notification service that sends information every time a channel that you are subscribed to makes one of the following changes:
1. new video upload, 2. change in title, and 3. change in the video description.
I implemented this in python and I subscribed to receive updates on my channel. I was able to see that the subscription was successful using the pubshub/ websub tool . However, when changes were made to the videos on the channel I was subscribed to, I did not receive any push notifications.
some said that there's a huge delay ( it should not be because youtube claims it's near real-time), but then I saw the issue tracker page for this feature which basically says that the feature is broken.
So, I wanted to know if there is any other mechanism that I can try to do this? or is there someone who has tried this, and it's working?

Telegram track forwarding and storing

Short:
Is there any way to detect if a user stores or forwards a message (e.g. a video) in a channel?
Long:
I am completely new to programming for Telegram (although am a programmer). So have no idea about the tools that are provided by Telegram's API. I actually found nothing related to this issue browsing the web and Telegram documentations. So I thought someone might have an experience with it.
The scenario is that a client of mine is running a virtual teaching system on Telegram and her problem is that the added members to the channel are able to forward the teaching videos to other persons out of the channel, who have not actually paid the fee. Now is there any work around on earth for this problem?
You can't track user in Telegram, remember this IM is very care about privacy.
Try making it a Bot rather than a channel, you can create bots with a bot in telegram called botfather search it and consider making a bot instead of a channel
there isn't any way to track users to see if they forward or save the videos.
you can only do one of these:
create a bot using telegram api (not telegram bot api) and then send videos as a self destructing message to each user.
or put the videos on a website which only registered users can login and watch.

Push Notification from API Update?

I am working with the soundcloud API and I want to send a user a push Notification on iOS whenever a targeted user uploads a new track. The app is developed with the Ionic Framework/ Cordova. I've looked into Amazon SNS and Parse but I can't find a way to watch the array. I can also do this through a RSS feed if that is easier.
Thanks
RSS is probably a pretty good way to detect new episodes/sounds posted. Hopefully, Soundcloud will implement PubSubHubbub, or you'll have to fetch/parse the feeds yourself.
Once you've identified the new entries, you can then sent the notifications.

Resources