Author |
Topic |
|
tsjarlie
Starting Member
Belgium
7 Posts |
Posted - 24 Aug 2006 : 10:41:51
|
Yesterday I've decided to make a script myself. Make is a big word, I'll copy another script and I'll modify it. (like most do ?) I want a script that give me movie information in dutch. I've started with a script for moviemeter.nl (there is asked for that here in the forums). After some experimenting I've go stuck very early in the script, I do a #FINDLINE# and the engine doesn't find the text. I've tried it with a piece of text some lines before and that does work ! I've checked the html and the text is there ...
Here is (part of) the script :
#SCRIPTWEBSITE#=http://www.moviemeter.nl
#WEBQUERY#=http://www.moviemeter.nl/?search&q=#MOVIE#
#CREATEMOVIELIST# #STARTREADWEB# #FINDLINE#=googlesyndication#12##ONERROR#=*ASK* #FINDLINE#=filmresults_row1#12##ONERROR#=*ASK* #FIND#=href="#03# #ONERROR#=*OK* #FIND#="#04# #ONERROR#=*OK* #TAKEWORD#=#07#,#04#,#05# //URL
The first #FINDLINE# the engine find. The second #FINDLINE# he doesn't find.
Are there any restrictions in size of html, number of lines / rows ? Or is it another problem
|
|
Alessio Viti
Forum Admin
Italy
9171 Posts |
Posted - 24 Aug 2006 : 12:58:36
|
Hi,
if the string "filmresults_row1" is in the same line of "googlesyndication" the #FINDLINE#= instruction will not found it. In this case you must use the #FIND#= instruction.
The #FINDLINE# instruction find the LINE where the string you are searching is stored, the #FIND# instruction search the string in the LINE where the cursor is.
I hope you understand by bad english,
Alessio |
|
|
tsjarlie
Starting Member
Belgium
7 Posts |
Posted - 24 Aug 2006 : 15:24:04
|
Alessio, thx for the quick response.
The string "filmresults_row1" is NOT in the same line of "googlesyndication", it's about 20 lines lower. you can check this out by looking at http://www.moviemeter.nl/?search&q=matrix
the second string I'm looking for is at line 98 cursor 615, maybe the cursor is too high ? |
|
|
tsjarlie
Starting Member
Belgium
7 Posts |
Posted - 05 Sep 2006 : 17:41:37
|
I've tried again today with the update ... I've used the next script
#SCRIPTWEBSITE#=http://www.moviemeter.nl
#WEBQUERY#=http://www.moviemeter.nl/?search&q=#MOVIE#
#CREATEMOVIELIST# #PUT#=0#01# #PUT#=1#02# #STARTREADWEB# #FINDLINE#=googlesyndication#12##ONERROR#=*STOP* #REPEAT# #READNEXTLINE# #WHILE# #01#<>#02#
The script engine is doing some readnextline until it find the line :
<h1>Films</h1><p>Doorzoek de database</p>
which isn't in the html ... he should find the line :
<h1>Films</h1><p>Zoekresultaten</p> </div>
which he doesn't find ...
anybody any suggestions ? |
|
|
Custler
Starting Member
Russia
44 Posts |
Posted - 05 Sep 2006 : 18:28:24
|
I think its more useful code will be:
#STARTREADWEB# #FINDLINE#=googlesyndication#12##ONERROR#=*STOP* #FINDLINE#=Zoekresultaten#12##ONERROR#=*STOP*
that's all. If you want to find first "Zoekresultaten" after "googlesyndication".
|
|
|
tsjarlie
Starting Member
Belgium
7 Posts |
Posted - 06 Sep 2006 : 11:31:03
|
Custler,
I don't think you get the point. I'm actually looking for :
#FINDLINE#=filmresults_row1#12##ONERROR#=*ASK*
Which it doesn't find, while it's really there |
|
|
Custler
Starting Member
Russia
44 Posts |
Posted - 08 Sep 2006 : 20:10:23
|
quote: Originally posted by tsjarlie
#FIND#=href="#03# #ONERROR#=*OK* #FIND#="#04# #ONERROR#=*OK* #TAKEWORD#=#07#,#04#,#05#
If you want to put Text between #03# and #04# into #07# You have to be carefully: #TAKEWORD#=#07#,#03#,#04# |
|
|
tsjarlie
Starting Member
Belgium
7 Posts |
Posted - 13 Sep 2006 : 18:33:00
|
Custler,
that wasn't the problem It looks like nobody uses or writes scripts ? |
|
|
Custler
Starting Member
Russia
44 Posts |
Posted - 13 Sep 2006 : 21:12:03
|
No. Nobody wants to find errors in your script instead of you. As I see source code of the web page, It looks like no problem page to write script. May be you have to reformulate your question.. |
|
|
Alessio Viti
Forum Admin
Italy
9171 Posts |
Posted - 14 Sep 2006 : 11:15:31
|
Sorry guys, usually I help people to write script and solve problems.
These days I was really busy with XMM, I hope to find some time today.
Thank you for your patience.
Alessio |
|
|
Alessio Viti
Forum Admin
Italy
9171 Posts |
Posted - 15 Sep 2006 : 13:38:08
|
Hi
quote: Custler,
I don't think you get the point. I'm actually looking for :
#FINDLINE#=filmresults_row1#12##ONERROR#=*ASK*
Which it doesn't find, while it's really there
I am sorry, but at this time I think it's not possible make a script for this website.
The reason is that the HTML-txt that XMM download is not the HTML you can see in Internet Explorer.
Please open the "tempdir" subfolder of XMM, and open the "temphtml1.txt" file: you will see that the HTML is incomplete.
I don't know why yet, but XMM cannot download the complete HTML.
Alessio |
|
|
|
Topic |
|