Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/api/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
有电影放映时间api吗?_Api_Movies - Fatal编程技术网

有电影放映时间api吗?

有电影放映时间api吗?,api,movies,Api,Movies,是否有人知道有任何(最好是免费的)受支持的api可用于按邮政编码访问电影放映时间 我不相信任何现有的api,如netflix或imdb,都能提供这方面的信息。我的猜测是,你最好的选择(除非这些家伙有RSS提要)是使用支持正则表达式的语言来删除HTML 请注意,这很难看,每次他们更改代码时,您的代码都可能会被破坏。我找不到 您可以尝试从雅虎电影中抓取屏幕: 不知道谷歌是否将其公开为api,但这看起来很像你想要的。 对不起,在发布问题之前,我们应该再搜索一下 一些人透露了一个没有注册的雅虎!电影a

是否有人知道有任何(最好是免费的)受支持的api可用于按邮政编码访问电影放映时间


我不相信任何现有的api,如netflix或imdb,都能提供这方面的信息。

我的猜测是,你最好的选择(除非这些家伙有RSS提要)是使用支持正则表达式的语言来删除HTML

请注意,这很难看,每次他们更改代码时,您的代码都可能会被破坏。

我找不到

您可以尝试从雅虎电影中抓取屏幕:


不知道谷歌是否将其公开为api,但这看起来很像你想要的。

对不起,在发布问题之前,我们应该再搜索一下

一些人透露了一个没有注册的雅虎!电影api()


看起来不错。

环顾四周后,我发现Dapper(open.Dapper.net)是创建此类提要的一个很好的解决方案

这是我制作的feed,它以电影标题和邮政编码作为参数。(大多数其他可用信息仅按ZIP搜索)


设置花费了大约5分钟。

是的,雅虎显然在2009年11月删除了他们的秘密电影API。

似乎每个人都直接从TMS数据中获取数据:

我也在寻找我可以合法地抓取和重新发布的节目时间。雅虎的声音好像如果你不是出于商业目的,它是不被禁止的。。。也许这是我一厢情愿的想法

你同意不复制,复制, 复制、出售、交易、转售或利用 出于任何商业目的,任何 部分、使用或访问 雅虎!服务


我也在寻找一个showtime API,和你一样,我也没有找到一个适合电影showtime的好API。我决定基于Google Showtimes编写自己的“ShowTimeAPI”。请检查一下

这是一个简单的PHP脚本,但“它做它应该做的事情”:


例如: http://code.basvd.nl/showtime\u grabber\u 0.1/Google\u showtime.php

下载simple_html_dom.php: http://code.basvd.nl/showtime\u grabber\u 0.1/

禁用“允许url\u fopen”时,请使用

http://www.google.com/ig/api?movies=YOUR_ZIP_HERE


多亏了尼克。这是我将使用的链接

Fandango似乎有RSS源,可以让你搜索附近的电影

它们可以在这里找到:


不确定从中删除html是否合法,但是,这是我发现的最干净的伪API。-只需使用类似于



我知道这有点旧了。我不认为有一个api,但有些供应商提供这项服务。我建议你看看西方世界的媒体

谢谢你的建议。我已经用python的beautifulsoup实现了一个屏幕截图。但从长远来看,我想避免使用这个,因为这明显违反了他们的服务条款。因此,搜索一个受支持的/有文档记录的api。这个链接已经被Google终止。对不起,不幸的是他们都没有rss。用一个像样的html解析器进行抓取并不坏。但我更担心违反服务条款,而不是每隔一段时间就必须更新代码。请注意,尽管它确实正确提取了谷歌的内容,但它完全违反了谷歌的服务条款。请小心使用。订阅源已被Google阻止,在中不再可用here@Brook当注册它需要证书代码时,注册时应该给出什么值?上面提到的未记录的YAHOO api非常棒。。。我已经用了一段时间了。。。不幸的是,雅虎刚刚让它消失(2009年11月4日之后)。。。没有雅虎的授权。。。而且看起来他们并没有发出去!:((我希望上面的另一个想法对我有用)--ThomasYahoo刚刚删除了他们未记录的API吗?我再也无法访问它了,但我也找不到任何人谈论它(删除)。链接现在死了。仅限美国和加拿大:-(是否有人发布了一个实际的api,比如web服务?我不喜欢做屏幕抓取。我真的很想编写一个手机或ipad应用程序,它有一个时间表,显示在未来2小时内附近播放的电影。没有网页以这种方式显示,这通常是我希望看到的。“在未来几个小时内我可以看到什么节目?”如果我能得到数据,我很想写这个应用程序。有什么线索吗?粘贴后在浏览器上查看源代码(mod it)然后按enter键。一个xml对象包含孩子和你的电影列表。如果你什么也看不到,检查是否有错误。这不起作用。每次都是相同的列表,只是zipcode发生了变化。我猜谷歌内部是用它来测试的。@henry74,它是一个iGoogle API。它的页面一次显示3个,这就是为什么它总是e同样的回答。你是今天的英雄!非常感谢!说真的,如果可以的话+10!真的太糟糕了,谷歌没有公开的API:)我不想听起来很刻薄,但是过去的记录呢?已经不存在了。谷歌删除了这个已经死了的记录。谷歌删除了这个。这个链接似乎不再有效。我更新了链接,在查看了你的更改后,我撤销了我以前的负面评论,并对这个答案进行了投票。
    <?php
/**
 * Google Showtime grabber
 * 
 * This file will grab the last showtimes of theatres nearby your zipcode.
 * Please make the URL your own! You can also add parameters to this URL: 
 * &date=0|1|2|3 => today|1 day|2 days|etc.. 
 * 
 * Please download the latest version of simple_html_dom.php on sourceForge:
 * http://sourceforge.net/projects/simplehtmldom/files/
 * 
 * @author Bas van Dorst <info@basvandorst.nl>
 * @version 0.1 
 * @package GoogleShowtime
 */

require_once('simple_html_dom.phps');

$html = new simple_html_dom();
$html->load_file('http://www.google.nl/movies?mid=&hl=en&near=1400AB');

print '<pre>';
foreach($html->find('#movie_results .theater') as $div) {
    // print theater and address info
    print "Theate:  ".$div->find('h2 a',0)->innertext."\n";
    print "Address: ". $div->find('.info',0)->innertext."\n";

    // print all the movies with showtimes
    foreach($div->find('.movie') as $movie) {
        print "\tMovie:    ".$movie->find('.name a',0)->innertext.'<br />';
        print "\tTime:    ".$movie->find('.times',0)->innertext.'<br />';
    }
    print "\n\n";
}

// clean up memory
$html->clear();

?> 
    <?php
/**
 * Google Showtime grabber
 * 
 * This file will grab the last showtimes of theatres nearby your zipcode.
 * Please make the URL your own! You can also add parameters to this URL: 
 * &date=0|1|2|3 => today|1 day|2 days|etc.. 
 * &start=10 gets the second page etc...
 * 
 * Please download the latest version of simple_html_dom.php on sourceForge:
 * http://sourceforge.net/projects/simplehtmldom/files/
 * 
 * @author Bas van Dorst <info@basvandorst.nl>
 * @version 0.1 
 * @package GoogleShowtime
 *
 * @modifyed by stephen byrne <gold.mine.labs@gmail.com>
 * @GoldMinelabs.com 
 */

require_once('simple_html_dom.php');

$curl = curl_init(); 
curl_setopt($curl, CURLOPT_URL, 'http://www.google.ie/movies?near=dublin');  
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);  
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10);  
$str = curl_exec($curl);  
curl_close($curl);  

$html = str_get_html($str);

print '<pre>';
foreach($html->find('#movie_results .theater') as $div) {
    // print theater and address info
    print "Theate:  ".$div->find('h2 a',0)->innertext."\n";
    //print "Address: ". $div->find('.info',0)->innertext."\n";

    // print all the movies with showtimes
    foreach($div->find('.movie') as $movie) {
        print "Movie:    ".$movie->find('.name a',0)->innertext.'<br />';
        print "Time:    ".$movie->find('.times',0)->innertext.'<br />';
    }
    print "\n\n";
}

// clean up memory
$html->clear();
?>
http://www.google.com/ig/api?movies=YOUR_ZIP_HERE
$('div.showtime', response).each(function() {
   // ... process each showtime div
});