Get posts from pinterest for a specified hashtag - pinterest

How to get the Images from pinterest with a specified hashtag of the pic. I need to get the pinned pictures with a specific hash tags from the pinterest. Is there any way to get.

If all you have is a hashtag then no there isn't. If you knew which board it was on, or which user it was from, then I would just get all the pins belong to the board/user and loop through them to see if the hashtag occurs in the note.
As JP Hellemons points out, there is no search endpoint in the Pinterest API as yet.

Related

Change image next to Website in Google search results

Good morning,
a customer of ours asked us if it was possible to change the image that Google shows next to his site in Google search results.
After several searches, we tried using different techniques all followed by re-indexing the page in order to instantly see the results.
We tried using structured data (both with ld+json and using microdata) and also of the attributes "og:image" and "og:title" in the "meta" tags, but none of these tests changed the image displayed on the right side next to the site in Google results.
We expected that with one of these methods would have changed the image, but nothing happened
Therefore, we wondered whether it was possible to change that image or whether Google chose the best image based on its search parameters.
Thank you for your valuable help,
Best regards

Parsing Youtube - Xpath to retrieve a Youtube Channel's Profile Picture and Description

I would like to import the profile picture of a number of Youtube Channels into a Google Sheets spreadsheet.
This is the information that I have been able to retrieve so far:
To retrieve the profile picture, I have used the following code using Social Blade's website:
=IMPORTXML(D2,"//img[#id='YouTubeUserTopInfoAvatar']")
However while it doesn't result in an erorr it doesn't retrieve the image from the src. Any idea how to make it work?
In regard to the description, I would like to use a code that can be consistently used using either the channel's id or Youtube's username. Other solutions that I have tried have allowed me to get a truncated description, not the full one.
Maybe there is a more cost-effective way of doing this task, but without much Javascript experience this is the easiest way I have found to retrieve the information. Ideally, I would like to find a solution that calls on the Youtube API and bypasses the 50-call limit.
Here's a sample Google Sheets template to work on a solution.
OK. I've edited your Google Sheet. You forgot the #src attribute for the image.
=IMAGE(IMPORTXML(E2;"//img[#id='YouTubeUserTopInfoAvatar']/#src"))
And I've added the XPath for the Youtube channel description (add "/about" at the end of the youtube channel links).
=IMPORTXML(C2,"//div[#class='about-description branded-page-box-padding']")
Note : You have to fix your "ChannelID" formula to extract the ID.

Do I need to request the Google-places-api every time a user views a page on my website to show an image?

I would like to use the google places api to show images on my website pages, in order to determine if we can use this I need to know the exact behavior of this call of the image. Does it mean that every time when a user enters a page to which I have attached the google places images functionality a call needs to be performed in order to show the image?
If so I can determine how much it would cost to make use of this functionality, hence page views are equal to api calls.
Thanks in advance
The Google Places Photos API has some pretty good documentation.
For each place you want photos for, you first have to make a request to Place Search or Place Details to retrieve a photos array. Each photo that you want to display would be another request through the api using your API Key and a photoreference from the photos array.
Both types of request could either be made from client side code or from your server. If made from your server, you could reduce the number of API calls made by caching photos arrays and photos for use across many web requests.

YouTube Video Topics/Categories

I'm working with YouTube videos and I noticed the field topicDetails.topicCategories (see in the API). It's not clear to me if this field is autogenerated by YouTube or if the user has to fill it. I tried to find some relevant field when editing the video but I didn't find it anywhere. So I guess YouTube fills this field based on tags, keywords etc. Is that correct?
google Api Explorer Check this site to see for which api you need which parameters.
I couldn't find a definitive answer for your question in the YouTube documentation for topicCategories, but I have some evidences that it is automatically calculated by YouTube.
First I couldn't find a way to set it in the configuration options of the channel I created.
Second, they used to have a (now deprecated) attribute called Guide Category they explicitly say:
A guideCategory resource identifies a category that YouTube algorithmically assigns based on a channel's content or other indicators, such as the channel's popularity. The list is similar to video categories, with the difference being that a video's uploader can assign a video category but only YouTube can assign a channel category.
So I believe that this Topic Category is automatically calculated by You Tube.

Facebook comment using ajax/django site

I have just one trouble adding fb comments box in my site. I use kust one url and read the content of the site using js. I put in the head the init of my fb app but I have three post in the main page and I want one comment box for every post. To load the comments of my post I use ((myurl)){{post.id}} to make unique the comment box. This url dosen't exist. But show me up difference comment for every. But don't let me moderate.. I mean dont show the moderation tool. But if i change the href of the post to my url real. Show me the noderstion tool but the same comments in every posts. Any idea???
The page is by ajax bwcause is a radio station and need to listwn the station y all contwnt. There is any way to assign thw url "manualy" in thw api of fb?

Resources