您对抓取ip网络摄像头jpg图像(每隔几秒钟更新一次)并通过wordpress自动发布有何想法。最好的方法是什么?
基本上,我想抓取一个jpg图片,创建一个新帖子,并从jpg在某个URL上找到的网络摄像头创建一个帖子图片,这样你就可以得到一些图片帖子。
谢谢Andreas
您对抓取ip网络摄像头jpg图像(每隔几秒钟更新一次)并通过wordpress自动发布有何想法。最好的方法是什么?
基本上,我想抓取一个jpg图片,创建一个新帖子,并从jpg在某个URL上找到的网络摄像头创建一个帖子图片,这样你就可以得到一些图片帖子。
谢谢Andreas
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.
我正在创建一个包含类别的菜单。当您将鼠标悬停在每个菜单选项上时,是否有办法使其显示该类别中最近发表的文章的列表?