BinaryWorks.it Official Forum
BinaryWorks.it Official Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 eXtreme Movie Manager (Rel. 7), No More Updates
 Scripts
 problem with making a script
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

tsjarlie
Starting Member

Belgium
7 Posts

Posted - 24 Aug 2006 :  10:41:51  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

tsjarlie
Starting Member

Belgium
7 Posts

Posted - 24 Aug 2006 :  15:24:04  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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 ?
Go to Top of Page

tsjarlie
Starting Member

Belgium
7 Posts

Posted - 05 Sep 2006 :  17:41:37  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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 ?
Go to Top of Page

Custler
Starting Member

Russia
44 Posts

Posted - 05 Sep 2006 :  18:28:24  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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".
Go to Top of Page

tsjarlie
Starting Member

Belgium
7 Posts

Posted - 06 Sep 2006 :  11:31:03  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Custler
Starting Member

Russia
44 Posts

Posted - 08 Sep 2006 :  20:10:23  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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#
Go to Top of Page

tsjarlie
Starting Member

Belgium
7 Posts

Posted - 13 Sep 2006 :  18:33:00  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Custler,

that wasn't the problem
It looks like nobody uses or writes scripts ?
Go to Top of Page

Custler
Starting Member

Russia
44 Posts

Posted - 13 Sep 2006 :  21:12:03  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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..
Go to Top of Page

Alessio Viti
Forum Admin

Italy
9171 Posts

Posted - 14 Sep 2006 :  11:15:31  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Alessio Viti
Forum Admin

Italy
9171 Posts

Posted - 15 Sep 2006 :  13:38:08  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
BinaryWorks.it Official Forum © Binaryworks.it Go To Top Of Page
Generated in 0.16 sec. Powered By: Snitz Forums 2000 Version 3.4.07