[ASK]How Generate 1-xx
-
- Posts: 70
- Joined: 31 Oct 2014, 04:43
[ASK]How Generate 1-xx
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..
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..
-
- Site Admin
- Posts: 2084
- Joined: 02 Mar 2009, 17:02
Re: [ASK]How Generate 1-xx
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...
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...
-
- Posts: 70
- Joined: 31 Oct 2014, 04:43
Re: [ASK]How Generate 1-xx
:v my internet speed is bad, it works thanks mate.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...
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]
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
http://www.r18.com/common/search/floor= ... ice=video/
-
- Site Admin
- Posts: 2084
- Joined: 02 Mar 2009, 17:02
Re: [ASK]How Generate 1-xx
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.
You should use "Filters -> Excluded URLs" if you want to download only necessary URLs without anything else.
-
- Posts: 70
- Joined: 31 Oct 2014, 04:43
Re: [ASK]How Generate 1-xx
yes but the link always get thumb only, need to replace for original link :(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.
-
- Site Admin
- Posts: 2084
- Joined: 02 Mar 2009, 17:02
Re: [ASK]How Generate 1-xx
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]
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]
-
- Posts: 70
- Joined: 31 Oct 2014, 04:43
Re: [ASK]How Generate 1-xx
Can all previews downloaded? Not only one.Maxim wrote: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]
-
- Site Admin
- Posts: 2084
- Joined: 02 Mar 2009, 17:02
Re: [ASK]How Generate 1-xx
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.
-
- Posts: 70
- Joined: 31 Oct 2014, 04:43
Re: [ASK]How Generate 1-xx
yeah it works thanks mate.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.
I will wait for the next version, this is great software thank's you :)
-
- Site Admin
- Posts: 2084
- Joined: 02 Mar 2009, 17:02
Re: [ASK]How Generate 1-xx
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
[#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