Page 1 of 2
[ASK]How Generate 1-xx
Posted: 11 Feb 2015, 09:13
by de2apandi
Hi
Maxim or
everyone please help me
i want parsing html to get link range 1-30
REGEX
data-original="(
http://pics.r18.com/digital/video/.+?)(-[0-9])(\.jpg)
data-original="(
http://pics.r18.com/digital/video/.+?)(-[1-9][0-9])(\.jpg)
Address
[#1]jp[#2][#3]
Source for parsing
http://www.r18.com/videos/vod/movies/de ... 3swf00151/
The result always 1-9 and 11-20. 10 always not include why ?
How to get 1-30 with one regex only
Please help me Thanks in advance..

Re: [ASK]How Generate 1-xx
Posted: 11 Feb 2015, 12:44
by Maksym
You can use "\d+" in RegExp for any number of digits. Like this:
data-original="(
http://pics.r18.com/digital/video/.+?)(\d+)(\.jpg)
But why do you need such a complex RegExp for this page? Default parsers will easily find those links...
Re: [ASK]How Generate 1-xx
Posted: 11 Feb 2015, 14:21
by de2apandi
Maxim wrote:You can use "\d+" in RegExp for any number of digits. Like this:
data-original="(
http://pics.r18.com/digital/video/.+?)(\d+)(\.jpg)
But why do you need such a complex RegExp for this page? Default parsers will easily find those links...
:v my internet speed is bad, it works thanks mate.
But i found again problem when i put another RegExp like this
Code: Select all
RegExp data-original="(http://pics.r18.com/digital/video/.+?)(ps)(\.jpg)
Address [#1]pl[#3]
So i want pic "Cover and Preview"
Example
Code: Select all
Cover = http://pics.r18.com/digital/video/idbd00280/idbd00280pl.jpg
Preview=http://pics.r18.com/digital/video/idbd00280/idbd00280jp-1.jpg
site for parsing
http://www.r18.com/common/search/floor= ... ice=video/
Re: [ASK]How Generate 1-xx
Posted: 11 Feb 2015, 14:29
by Maksym
Custom parsers won't help you to get rid of unwanted downloads and speed-up the download process. They are used to generate more downloadable addresses that are not present in the original page text. But the addresses you're trying to generate are already in the text page. So why bother?
You should use "Filters -> Excluded URLs" if you want to download only necessary URLs without anything else.
Re: [ASK]How Generate 1-xx
Posted: 11 Feb 2015, 15:34
by de2apandi
Maxim wrote:Custom parsers won't help you to get rid of unwanted downloads and speed-up the download process. They are used to generate more downloadable addresses that are not present in the original page text. But the addresses you're trying to generate are already in the text page. So why bother?
You should use "Filters -> Excluded URLs" if you want to download only necessary URLs without anything else.
yes but the link always get thumb only, need to replace for original link :(
Re: [ASK]How Generate 1-xx
Posted: 11 Feb 2015, 15:47
by Maksym
OK, then you need 2 separate parsers. One for cover:
RegExp: data-original="(
http://pics.r18.com/digital/video/.+?)(ps)(\.jpg)
Address: [#1]pl[#3]
And one for preview:
RegExp: data-original="(
http://pics.r18.com/digital/video/.+?)(ps)(\.jpg)
Address: [#1]jp-1[#3]
Re: [ASK]How Generate 1-xx
Posted: 11 Feb 2015, 16:12
by de2apandi
Can all previews downloaded? Not only one.
Re: [ASK]How Generate 1-xx
Posted: 11 Feb 2015, 16:16
by Maksym
Currently - you have to create 10 separate Custom parsers for 10 previews. But we're going to fix it in the next versions and will add some kind of "iterator" inside the custom parser to allow generate 10's or 100's of URLs from 1 parser.
Re: [ASK]How Generate 1-xx
Posted: 11 Feb 2015, 16:24
by de2apandi
Maxim wrote:Currently - you have to create 10 separate Custom parsers for 10 previews. But we're going to fix it in the next versions and will add some kind of "iterator" inside the custom parser to allow generate 10's or 100's of URLs from 1 parser.
yeah it works thanks mate.
I will wait for the next version, this is great software thank's you :)
Re: [ASK]How Generate 1-xx
Posted: 14 Apr 2015, 12:17
by Maksym
OK, version 3.27 released with this feature (as well as several other cool features). Now you can use [$1-30$] in the <b>Result</b> line to create 30 URLs from a single Regular Expression match. Like this:
[#1]jp-[$1-20$][#3]
Here is the direct download link for the new version:
http://www.exisoftware.com/picture_find ... rSetup.exe
And here is the list of new features in this version:
http://www.exisoftware.com/picture_find ... s_new.html