[ASK]How Generate 1-xx

de2apandi
Posts: 70
Joined: 31 Oct 2014, 04:43

[ASK]How Generate 1-xx

Post by de2apandi » 11 Feb 2015, 09:13

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.. Image

Maksym
Site Admin
Posts: 2077
Joined: 02 Mar 2009, 17:02

Re: [ASK]How Generate 1-xx

Post by Maksym » 11 Feb 2015, 12:44

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...

de2apandi
Posts: 70
Joined: 31 Oct 2014, 04:43

Re: [ASK]How Generate 1-xx

Post by de2apandi » 11 Feb 2015, 14:21

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/

Maksym
Site Admin
Posts: 2077
Joined: 02 Mar 2009, 17:02

Re: [ASK]How Generate 1-xx

Post by Maksym » 11 Feb 2015, 14:29

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.

de2apandi
Posts: 70
Joined: 31 Oct 2014, 04:43

Re: [ASK]How Generate 1-xx

Post by de2apandi » 11 Feb 2015, 15:34

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 :(

Maksym
Site Admin
Posts: 2077
Joined: 02 Mar 2009, 17:02

Re: [ASK]How Generate 1-xx

Post by Maksym » 11 Feb 2015, 15:47

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]

de2apandi
Posts: 70
Joined: 31 Oct 2014, 04:43

Re: [ASK]How Generate 1-xx

Post by de2apandi » 11 Feb 2015, 16:12

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]
Can all previews downloaded? Not only one.

Maksym
Site Admin
Posts: 2077
Joined: 02 Mar 2009, 17:02

Re: [ASK]How Generate 1-xx

Post by Maksym » 11 Feb 2015, 16:16

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.

de2apandi
Posts: 70
Joined: 31 Oct 2014, 04:43

Re: [ASK]How Generate 1-xx

Post by de2apandi » 11 Feb 2015, 16:24

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 :)

Maksym
Site Admin
Posts: 2077
Joined: 02 Mar 2009, 17:02

Re: [ASK]How Generate 1-xx

Post by Maksym » 14 Apr 2015, 12:17

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

Post Reply