I would like to ask you. How to retrieve image by the specific URL (that I already have)? I found a lots of articles about how to retrieve images and items by some keywords etc. but I don't need that search.
I tried to make a crawler to get the image, but it's impossible until I don't use the ebay API (the url to image is hidden).
Is it possible to retrieve images even if I don't want to use ebay AppID, so just somehow crawl the page?
I am not sure what solutions I can get, but I need to use it with PHP
Without API you can just use
http://i.ebayimg.com/images/i/1234567890123-0-1/s-l250/p.jpg
http://i.ebayimg.com/images/i/[EbayId]-0-1/s-l[width]/p.jpg
Here is an example of how to get the pictures via the API, just replace your appid and the item id you want (the pictures are in Item->PictureURL):
http://open.api.ebay.com/shopping?callname=GetSingleItem&responseencoding=JSON&appid=YOURAPPID&siteid=0&version=939&ItemID=ITEMID
Related
I am displaying feed/posts of facebook page/group via graph api in my site by calling this Url in php code -
https://graph.facebook.com/page_id/feed?access_token=token_value
Then, Among many type of posts, for a post of picture type i get picture url as
http://photos-g.ak.fbcdn.net/hphotos-ak-frc3/t1.0-0/1972372_10152261154160659_883879121_s.jpg
Now it's the small size as the last part "_s.jpg" indicates.But i want all picture sizes be large.So to achieve this what parameters are needed to include in the graph api url - "https://graph.facebook.com/page_id/feed?access_token=token_value" so that all picture/video type of posts' picture will be in large size??, so is there will be "_b.jpg" at last as i presume.Is that possible in one graph api call?
I searched through the google but no luck, but ended up planning that i would replace the last part of the pic url above with "_b.jpg" so that url will be like -
http://photos-g.ak.fbcdn.net/hphotos-ak-frc3/t1.0-0/1972372_10152261154160659_883879121_b.jpg
But are there any drawbacks for this hack?? what are the correct ways to achieve if possible in one graph api call.
notice,
/page/feed?fields=attachments
this will give you all of the attachments in their full sizes. worked charms for me
You could use a FQL query to get the source info of the large versions of the photos use in a Page's feed:
SELECT pid, object_id, src_big, src_big_width, src_big_height FROM photo WHERE object_id in (SELECT attachment.media.photo.fbid FROM stream WHERE source_id={page_id} AND actor_id={page_id})
Not sure if that’s actually documented somewhere – but in Graph API Explorer, the “Search for a field” feature suggests a field called full_picture. A few quick tests suggest that for most feed items, it returns the original image that was used making the post, whether it was a picture uploaded with the post, a video thumbnail or whatever.
You can use it in your feed calls like this:
/{user-or-page-id}/feed?fields=full_picture,message,type,…
Only fields you will get by default when using the fields parameter are id and created_time, everything else you might be interested in (message, type, from, etc.) you will have to ask for specifically as well.
That is for any type of feed item that might have a picture attached – expect for type:photo. For those, you get an object_id as well, and when you query that explicitly in a second request, you get an images data structure, that lists the different image sizes Facebook has on their CDN.
I have not found a wya to make it spit out that additional info within the original /foo/feed request in one go though – but if you collect all object_id that call delivers, you can use them in a second call like this to get the info for multiple objects at once:
/?ids=object_id1,object_id2,…&fields=images
with every feed there is a node name object-Id, use this id like this
graph.facebook.com/object-id/picture?type=large
if it shows question mark photo then use access_token=XXXXXX in query string.
I'm using the following URL to search eBay:
http://open.api.ebay.com/shopping?callname=FindPopularItems&version=849&siteid=3&appid=app_id_removed8&MaxEntries=100&ItemSort=EndTime&ItemType=FixedPriceItem&IncludeSelector=SearchDetails&responseencoding=XML&QueryKeywords=breaking+bad&HideDuplicateItems=true&outputSelector=PictureURLLarge&descriptionSearch=false
It works, but the gallery images it returns are so small.
e.g.
http://thumbs1.ebaystatic.com/pict/2311096735168080_1.jpg
How can i make it return large images?
I've read this: eBay API - How to get large item pictures?
Which suggested I add &outputSelector=PictureURLLarge&descriptionSearch=false but I just get the same response.
FPI is an old API call and doesn't support a lot of the parameters that newer API calls allow, such as an output selector, item sorting, description search, etc.
To get larger images, you may need to use a simple brute force find/replace on the thumbnail URLs.
If you search/replace "8080_" with "4040_" or "9696_" you'll get larger images. Try it right now in your browser with any eBay item# and it should work.
See "eBay API Gallery Image Resizing" on my eBay tech tips site for more info on this.
I was wondering what kind of method I could use to directly embed videos or pictures contained in twitter tweets directly ... For example .. below is a tweet from OBAMA
President Obama: "Right now, we have a real chance to reduce gun violence in America." http://t.co/tmCoUsPyyB #TimeToAct
The link that starts with htttp:// could be a picture .. How can I actually program it so that tweets are directly displayed with the images from the urls ? I know PHP and I used the twitter API before , but I dont know how I could easily achieve that . Any help would be appreciated
The first step would to to pull the URLs of of the block of text, there is another question that points you how to solve this: Extract URLs from text in PHP
You can then use Embedly or a service like it to pull the metadata associated with that url. Here is an example of the meta data that Embedly will return: http://embed.ly/docs/explore/oembed?url=http%3A%2F%2Ft.co%2FtmCoUsPyyB
The html attribute is what you want to render on your page.
We also have a PHP library you can use as well.
Hope that helps!
I'm trying to integrate the Flickr API with Jquery Gallerific. If you're familiar with Gallerific you know photos in the Gallery can have a caption. I'm trying to pull photos from a specific set from a user using flickr.photosets.getPhotos to get thumbnails. However, with this method it's not possible to get description for each thumbnail, only for the set so I'm having to run flickr.photos.getInfo for each photo in the set, which works but is pretty much useless as a page takes 10+ seconds to load. Does anyone know how to obtain flickr photos from a set with the individual description for each photo? I've looked through the API but can't seem to find anything.
Thanks in advance!
Never actually used the Flickr API but what about just loading the thumbnails initially, then using JSONP (or a custom "proxy" of sorts) to query photo information asynchronously after the page has loaded. Or, better yet, when the user actually hovers over an image.
I'm trying to retrieve pictures from flickr using the Zend Framework. So far I'm successful in retrieving images based upon a tag however the result is far from what I expected.
Seems that retrieving every picture tagged by a city name also returns pictures that you wouldn't want to show on a travel site even though it has been tagged by the city name.
How does gogobot manage to retrieve the correct pictures for all the cities they have? I don't want to consider having to make my own library n flickr with pictures for all the cities and have them manually tagged.
Tagging images is user driven - so I could take a photo of me in London and tag it 'me', and 'london'. Then when you search you are also getting this image, as the api would suggest.
To only get photos you really want, you will either have to specify what images you want to fetch, or as you say, start your own library.
Also, on http://www.flickr.com/services/api/flickr.photos.search.html check out the 'accuracy' field