help arrange code
#1
Sad 
web site searh more succes with one word searching but title "the" problem for me
i want to use second word of movie name if it's starting "the" .(like : the pacific)
other situation first word enough for me..
if i use 1. word of movie name it's cannot find right info which movies start "the"
i try first row
Code:
<RegExp input="$$1" output="\1" dest="2">
    <expression noclean="1"/>
    </RegExp>
result
Code:
the+pacific+2009+TR+DVDRip+Xvid-LTRG.avi

second row
Code:
<RegExp input="$$2" output="http://beyazperde.mynet.com/arama.asp?kat=film&amp;keyword=\1+\2" dest="3">
<expression noclean="1">(.[a-z]*)\+(.[a-z]*)</expression></RegExp>

result
Code:
the+pacific
it's good. but if movie name just one word like "pacific" it fails...
Reply
#2
Code:
<RegExp input="$$2" output="http://beyazperde.mynet.com/arama.asp?kat=film&amp;keyword=\1+\2" dest="3">
<expression noclean="1">(.[a-z]*)\+(.[a-z]*?)</expression></RegExp>
Reply
#3
your code didn't help me but thanks again for help i found the solution for my stupid web source (beyazperde.mynet.com) now movie name count and structure doesnt matter it finds all movies.....

Code:
<RegExp input="$$2" output="http://beyazperde.mynet.com/arama.asp?kat=film&keyword=\1" dest="3">
<RegExp input="$$1" output="+\3" dest="2+">
<RegExp input="$$1" output="+\2" dest="2+">
<RegExp input="$$1" output="\1" dest="2">
<expression noclean="1">
(.[a-z]*)
</expression>
</RegExp>
<expression noclean="1">
(.[a-z]*)\+(.[a-z]*)
</expression>
</RegExp>
<expression noclean="1">
(.[a-z]*)\+(.[a-z]*)\+(.[a-z]*)
</expression>
</RegExp>
<expression noclean="1"/>
</RegExp>

Now i started new scraper the problem is
i have results for \1 like that:
Code:
Fantastic Mr. Fox (2009)
The Desert Fox: The Story of Rommel (1951)
The Fox and the Hound 2 (2006)
The Fox and the Hound (1981)
The Mosquito Coast (1986)
&amp;quot;Lost&amp;quot; (2004)
Unconditional Love (2002)
&amp;quot;Lost: Missing Pieces&amp;quot; (2007)
&amp;quot;Xue Shan Fei Hu&amp;quot; (2006)
Caccia alla volpe (1966)

how can i clean " &amp;quot;"
Reply
#4
Do not use the "noclean=1" maybe?
Reply
#5
i found different solution.i grab differnt part of html now it's ok.
but i have to learn "post method" for new scraper..
Reply

Logout Mark Read Team Forum Stats Members Help
help arrange code0