Is there a way for Blogger-Twitter integration using javascript? - api

IFTTT is a great third party platform for blogger-twitter integration. However IFTTT allows only 25 Tweets per day from it's platform which is a trouble for me. I'm searching for a way if blogger and twitter could be integrated using javascript such that for every new post, a tweet is tweeted with post title and post url.

Related

list of working methods to scrape 4y+ historical Twitter tweets from users in 2022

It seems Twitter made lots of changes to API and Webapp so many methods that used to work in the past do not work anymore.
Which method does work as of today (April 2022) to scrape historical tweets from specific users at least the last 4+ years?
Selenium scraping: open https://www.twitter.com/ and scroll down until you have the history you need
not working, only 1 month data
https://pypi.org/project/GetOldTweets3/ - Twitter scraping of older tweets
seems to have stopped working? https://github.com/Mottl/GetOldTweets3/issues/98
Twitter API v2, Academic Research, full archive (free): https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api
?
Twitter Premium API 1.1 full archive (paid): https://developer.twitter.com/en/docs/twitter-api/premium/search-api/overview
?
There is a python based library named twint. It's an un-official sdk for twitter public API. you won't require twitter developer account or any access token.
Twint can help you in getting previous tweets and with some advanced controls.
If you feel some rate restriction from twitter for a large number of tweets, try breaking your search into smaller chunks.
Like, 10-10-2021 to 17-10-2021 (bi-weekly)
I have a sample github repo for that. Link
Hopefully, this can help!

Twitter API V2 video url

I'm trying to fetch a tweet's video url using API V2.
Using API V1.1 I can use
https://api.twitter.com/1.1/statuses/show.json?id=<ID>&include_entities=true
and get the direct mp4 urls in the response at
extended_entities.media[0].video_info.variants
But using API V2 I can't seem to find any ways to get those, I was only able to get the video thumbnail but not the actual video.
I've tried it with both the lookup and the recent search endpoints but couldn't find a way to do that.
In lookup docs twitter says:
This endpoint was recently graduated from Twitter Developer Labs, and is the replacement of v1.1 statuses/show, v1.1 statuses/lookup, and Labs Tweet lookup. If you are currently using any of these endpoints, you can use our migration materials to start working with this new endpoint.
but that doesn't seem to be the case, is that feature not included ? Also if there is any other way to be able to embed a twitter video in a web page (without the tweet text) that'd be helpful.
The videos are not currently available in the Twitter API v2 at this time. This is a known request.
For those who still looking for an answer, you can do it on the V2 by adding the following parameters :
expansions=attachments.media_keys
media.fields=variants
Your final link should give https://api.twitter.com/2/users/{{uid}}/tweets?expansions=attachments.media_keys&media.fields=variants
Source : https://developer.twitter.com/en/docs/twitter-api/data-dictionary/object-model/media
Progress on twitter-api-v2 media handling, Maybe this will allow the video URLs too in the response.
https://twittercommunity.com/t/v1-1-media-endpoints-available-for-essential-access-in-the-twitter-api-v2/171664

Get popular posts using Blogger API V3

How to get Popular Posts with 'All Time'|'LAST_YEAR'|'30 Days'|'7 Days' filter in Blogger API V3.
Can someone point me to the similar endpoint in Blogger API?
Currently, there is no endpoint available in Blogger API (https://developers.google.com/blogger/docs/3.0/reference/) which exposes the Popular Posts data for a blog. Google has acknowledged this and accepted it as a feature request (dating back to 2012) but till now no such public endpoint has been made available for the same.
I don't believe we expose the popular pages for a blog in any of our APIs at this point. I'll take this as a feature request =)
Refer to https://groups.google.com/d/msg/bloggerdev/G1Ew5ezZOhU/VhReyn5NXO8J

post comments to google plus with api and fetch them

In facebook, we can specify a web page url and add comments to it, or fetch comments for it, with the Graph API.
Later we can fetch the comments for the page, using a sample code, and display them on my page, as a widget, using a javascript code.
Similarly, is it possible to setup comments for a web page virtually using google plus, and display them with a code, using the API ? I came across google plus client library for php, but not sure about how to achieve what i wanted, with it.
Currently there is no public write API for Google+ or a way to bi-directionally integrate Google+ comments with an outside web page.
You can incorporate comments from a Google+ post onto your static page. Here are a couple of resources that can illustrate how:
The full documentation for the Google+ read API is at https://developers.google.com/+/api/ and there are libraries for PHP and JavaScript at https://developers.google.com/+/downloads/
http://little418.com/2011/12/google-comments-on-your-static-html-blog.html contains some examples about how to echo comments from a Google+ post.

Post on Google+ Stream using Google+ API

Any one have idea about how to post on our Google+ Stream using Google+ API? I need to post on the stream.
There is still no "public" officially supported way to post on a Google+ stream using an API. (You can post using the +1 or Share buttons, and some people have used unofficial APIs or leveraged the SMS posting methods, but this isn't what you're looking for.)
For details on what you can currently do with the limited API you can look at https://developers.google.com/+/api/
Here is an unofficial Google+ API written in js. https://github.com/mohamedmansour/google-plus-extension-jsapi