2013-01-06, 16:04
Is there any difference between these two methods of writing scraper?
I can not understand the difference. The second way is to me more readable.
Code:
<RegExp input="$$7" output="\1" dest="5+">
<RegExp input="$$6" output="<credits>\1</credits>" dest="7">
<RegExp input="$$1" output="\1" dest="6">
<expression noclean="1">scenariusz:(.*?)</ul></expression>
</RegExp>
<expression repeat="yes" fixchars="1">title=[^>]+>([^<]+)<</expression>
</RegExp>
<expression noclean="1" />
</RegExp>
Code:
<RegExp input="$$1" output="\1" dest="6">
<expression noclean="1">scenariusz:(.*?)</ul></expression>
</RegExp>
<RegExp input="$$6" output="<credits>\1</credits>" dest="7">
<expression repeat="yes" fixchars="1">title=[^>]+>([^<]+)<</expression>
</RegExp>
<RegExp input="$$7" output="\1" dest="5+">
<expression noclean="1" />
</RegExp>
I can not understand the difference. The second way is to me more readable.