Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 05:05

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Mit ID von IMDB.com Informationen (z.B. imdb-Rating) auslesen?

Discussion on Mit ID von IMDB.com Informationen (z.B. imdb-Rating) auslesen? within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1


 
Looneytune's Avatar
 
elite*gold: 301
The Black Market: 377/0/0
Join Date: Mar 2007
Posts: 24,558
Received Thanks: 13,300
Mit ID von IMDB.com Informationen (z.B. imdb-Rating) auslesen?

Morgen,

ich hatte mich gefragt, ob das moeglich ist, ich wuerde z.b. gerne lediglich die ID (z.b. tt1399103) in meine GUI eingeben, welches mir dann z.B: das IMDB Rating und Jahr wiedergibt.

Wenn ja, hat jemand vielleicht soetwas aehnliches schon mal gemacht, beim Auslesen von Internetseiten scheitert ich immer wieder.
Looneytune is offline  
Old 07/08/2011, 07:45   #2
 
Kinu's Avatar
 
elite*gold: 10
Join Date: May 2006
Posts: 2,786
Received Thanks: 773
naja die url kannst dir ja da relativ einfach zusammenbauen.

+ tt1399103/

Ich hab dann den einfachen bzw. schnellen weg benutzt und ein Parser für die Website gebaut. Weis nicht ob es effizientere Methoden gibt, jedenfalls hab ich keine API für IMDB gefunden.

Funktioniert super und ließt alles relevante zum Film aus.


€dit: ich habs natürlich nicht mit AutoIt gemacht, denke aber dort ist es auch möglich einen Parser für die Website zu schreiben
Kinu is offline  
Old 07/08/2011, 08:09   #3


 
Looneytune's Avatar
 
elite*gold: 301
The Black Market: 377/0/0
Join Date: Mar 2007
Posts: 24,558
Received Thanks: 13,300
Hab mit Hilfe doch einen Ansatz gefunden, aber wenn ich jetzt nach einem Wort oder einer Zahl suche, gibt mir AutoIT immer wieder nur "0" heraus.

Code:
#include <String.au3>
#include <inet.au3>
#Include <Array.au3>
#include <IE.au3>


$IE = _IECreate("http://www.imdb.com/title/tt1399103/")
_IELoadWait($IE)
Sleep (10000)
$body=_IEBodyReadHTML ($IE)
$1 = _StringBetween($body, '<span class="value" itemprop="ratingValue">', '</span>')
Sleep (1000)
MSGBox (0,"TItel",$1)
Looneytune is offline  
Old 07/08/2011, 14:41   #4
 
lolkop's Avatar
 
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
würd dir empfehlen das per regexp zu machen...
beispiel:
Code:
$source = BinaryToString(InetRead("http://www.imdb.com/title/tt1399103/"))
$data = StringRegExp($source, '<h1 class="header" itemprop="name">\n(.*?)\n(?s).*?<a href="\/year\/(\d{4})\/">(?s).*?Users rated this (\d{1}\.\d{1})\/10', 1)
ConsoleWrite($data[0]&' ('&$data[1]&') Rating: '&$data[2]&'/10'&@CRLF)
lolkop is offline  
Reply


Similar Threads Similar Threads
negative rating?
04/23/2011 - Dekaron - 1 Replies
anyone know who to contact to remove ridiculous negative rating? we all know blunt is a scammer, he gave me a negative rating as a retaliation for giving him one that said he scams. and he accuses me of being a scammer. funny thing is, he gave me the negative rating like daysss after i gave him his. duh duh duh
Informationen über eine Datei auslesen
01/03/2011 - AutoIt - 13 Replies
Hi epvp, Ich wüsste gerne ob es eine möglichkeit gibt, Informationen über eine Datei auszulesen wie zum Beispiel Autor, Version ect. (rechtsklick auf beliebige Datei, Eigenschaften, das tab wechseln, hier kann man autor , version, kurzbeschreibung ect einstellen) Danke für eure hilfe AutoitScript
Rating
06/07/2008 - EO PServer Hosting - 3 Replies
If i dont played at they, i make it 5/10 Hey owners pls dont be mad or something to me if i rate it down... but If owners say they put up, ill rates them. NOTE: at compose rates: normal: low rate hyper: low rate so just make them "high" THEY ARE IN ALPHABET! Ill rate them now in:
Twelve Sky II a M rating MMO
03/31/2008 - General Gaming Discussion - 1 Replies
News Source Things looks more and more interesting, it seems that they evolve a lot in 2. Wait to see how it goes.



All times are GMT +1. The time now is 05:05.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.