Flickr饲料问题。如何显示来自视频流的所有图像

时间:2022-11-11 22:12:15

I am using a bespoke JQuery/PHP script which parses a Flickr feed using SimpliePie and outputs an image gallery.

我正在使用一个定制的JQuery/PHP脚本,该脚本使用SimpliePie解析Flickr提要并输出一个图像库。

I have instructed my client to upload there images into their flickr account.

我已经指示我的客户将这些图片上传到他们的flickr账户上。

The images are showing but the feed seems to be limiting to 20 images, however, there are 40 images in the stream.

图像正在显示,但提要似乎限制了20幅图像,然而,流中有40幅图像。

I have checked the API and there doesn't seem to be any paramaters to change this.

我检查了API,似乎没有任何参数可以改变这个。

Has anyone come across this before, can anyone help me tweak the feed so that it pulls all the images in the photostream?

有没有人遇到过这个问题,有人能帮我调整一下,让它把所有的图像都拉到照片流里吗?

Here is the Flickr Stream and feed...

这是Flickr流和feed…

http://www.flickr.com/photos/44280289@N04/

http://www.flickr.com/photos/44280289@N04

http://api.flickr.com/services/feeds/photos_public.gne?id=44280289@N04&lang=en-us&format=rss_200

http://api.flickr.com/services/feeds/photos_public.gne?id=44280289@N04&lang = en-us&format = rss_200

2 个解决方案

#1


4  

It appears that they do limit it to the initial 20 photos on flickr

看来他们确实限制了flickr上最初的20张照片

http://www.flickr.com/help/website/

http://www.flickr.com/help/website/

Why do I only see 20 items in RSS feeds?

为什么我在RSS提要中只看到20个条目?

Flickr only shows the latest 20 items in a feed. Because of this, the first time you connect to a feed you will only see the most recent items. But if your RSS reader saves items (as most do) you will see more than 20 as the items build up over time.

Flickr只显示提要中最近的20个条目。因此,第一次连接到提要时,您将只看到最近的条目。但是如果你的RSS阅读器保存条目(就像大多数人做的那样),随着时间的推移,你会看到超过20个条目。

But you could potentially use the flickr api, particularly http://www.flickr.com/services/api/flickr.photosets.getPhotos.html

但是您可以使用flickr api,特别是http://www.flickr.com/services/api/flickr.photosets.getPhotos.html

Which allows you to get more (You will need to get an API key however)

它允许您获得更多(但是您需要获得一个API键)


Edit:

编辑:

Though I have not personally used it I have read/heard good things about http://phpflickr.com/ which is a flickr api wrapper for php 4 and 5

虽然我没有亲自使用它,但我读过/听说过http://phpflickr.com/,这是一个用于php 4和5的flickr api包装器


Edit 2: Unfortunately I can not comment on your comment but if you take a look at this link from the flickr code blog

编辑2:不幸的是,我不能评论你的评论,但是如果你看看这个来自flickr代码博客的链接

http://code.flickr.com/blog/2008/08/25/api-responses-as-feeds/

http://code.flickr.com/blog/2008/08/25/api-responses-as-feeds/

Some API responses can been provided as feeds so you could try using "&format=feed-rss_200" not sure if it includes getPhotos yet though.

一些API响应可以作为提要提供,因此您可以尝试使用“&format=feed-rss_200”,但不确定它是否包含getPhotos。

#2


4  

It seems like you want to use the photosets.getPhotos api call. It will give you a maximum of 500 photos.

看来你想用这套影碟。getPhotos api调用。它最多能给你500张照片。

Here is an example which gives you the url of the photo in url_o

这里有一个例子,它给出了url_o中照片的url

http://api.flickr.com/services/rest/?method=flickr.photosets.getPhotos&extras=url_o&photoset_id=72157622766901612&api_key=[YOUR APIKEY HERE]

You need an api key to make it work.

您需要一个api密钥来让它工作。

You can also get the output as JSON directly by adding &format=json to the url.

您还可以通过向url添加&format= JSON直接获得JSON输出。

#1


4  

It appears that they do limit it to the initial 20 photos on flickr

看来他们确实限制了flickr上最初的20张照片

http://www.flickr.com/help/website/

http://www.flickr.com/help/website/

Why do I only see 20 items in RSS feeds?

为什么我在RSS提要中只看到20个条目?

Flickr only shows the latest 20 items in a feed. Because of this, the first time you connect to a feed you will only see the most recent items. But if your RSS reader saves items (as most do) you will see more than 20 as the items build up over time.

Flickr只显示提要中最近的20个条目。因此,第一次连接到提要时,您将只看到最近的条目。但是如果你的RSS阅读器保存条目(就像大多数人做的那样),随着时间的推移,你会看到超过20个条目。

But you could potentially use the flickr api, particularly http://www.flickr.com/services/api/flickr.photosets.getPhotos.html

但是您可以使用flickr api,特别是http://www.flickr.com/services/api/flickr.photosets.getPhotos.html

Which allows you to get more (You will need to get an API key however)

它允许您获得更多(但是您需要获得一个API键)


Edit:

编辑:

Though I have not personally used it I have read/heard good things about http://phpflickr.com/ which is a flickr api wrapper for php 4 and 5

虽然我没有亲自使用它,但我读过/听说过http://phpflickr.com/,这是一个用于php 4和5的flickr api包装器


Edit 2: Unfortunately I can not comment on your comment but if you take a look at this link from the flickr code blog

编辑2:不幸的是,我不能评论你的评论,但是如果你看看这个来自flickr代码博客的链接

http://code.flickr.com/blog/2008/08/25/api-responses-as-feeds/

http://code.flickr.com/blog/2008/08/25/api-responses-as-feeds/

Some API responses can been provided as feeds so you could try using "&format=feed-rss_200" not sure if it includes getPhotos yet though.

一些API响应可以作为提要提供,因此您可以尝试使用“&format=feed-rss_200”,但不确定它是否包含getPhotos。

#2


4  

It seems like you want to use the photosets.getPhotos api call. It will give you a maximum of 500 photos.

看来你想用这套影碟。getPhotos api调用。它最多能给你500张照片。

Here is an example which gives you the url of the photo in url_o

这里有一个例子,它给出了url_o中照片的url

http://api.flickr.com/services/rest/?method=flickr.photosets.getPhotos&extras=url_o&photoset_id=72157622766901612&api_key=[YOUR APIKEY HERE]

You need an api key to make it work.

您需要一个api密钥来让它工作。

You can also get the output as JSON directly by adding &format=json to the url.

您还可以通过向url添加&format= JSON直接获得JSON输出。