IP camera jpg stream to post

时间:2011-07-03 作者:Andreas Ostheimer

您对抓取ip网络摄像头jpg图像(每隔几秒钟更新一次)并通过wordpress自动发布有何想法。最好的方法是什么?

基本上,我想抓取一个jpg图片,创建一个新帖子,并从jpg在某个URL上找到的网络摄像头创建一个帖子图片,这样你就可以得到一些图片帖子。

谢谢Andreas

1 个回复
SO网友:kaiser

If you\'re adding a post every few seconds, then you\'d really spam your database. Adding an attachment (which is some type of post), is not really different, but more appreciated. Take a look at these functions.

Just my 2 cents: I\'d just display it according to the url, not download, save and add a post with lots of unnecessary data. If you need to save it, you\'re better off with simply saving it in some custom folder and not use the wp engine at this point. You could create date and/or time based folders and use the folder name as img caption or such.

结束