• You are not logged in.

#1 Sept. 16, 2013 08:40:07

sketman
Registered: 2013-01-22
Posts: 13
Reputation: +  0  -
Profile   Send e-mail  

Dynamic image name

How can I “click” image with dynamic code? Please see “@” image on this page: http://www.bandliste.de/Bands/In_Difference/122/ . The name of image is a code which is being dynamically changed upon each page load. Is this please possible with Fminer?

Thank you.

Offline

#2 Sept. 16, 2013 21:00:04

admin
Registered: 2012-03-15
Posts: 289
Reputation: +  1  -
Profile   Send e-mail  

Dynamic image name

I have tested this page, the current version of FMiner can't scrape this information, because it not show the error message, I have changed the source code of Fminer to show the error message on page, nowwhen openlink of @, the page will show this:

Failed loading page (Protocol “mailto” is unknown)

mailto:daniel@in-difference.de, info@in-difference.de

Then you can scrape the emails like the normal pages. Please wait some days for the next version to scrape this site.

Offline

#3 Sept. 17, 2013 22:05:38

admin
Registered: 2012-03-15
Posts: 289
Reputation: +  1  -
Profile   Send e-mail  

Dynamic image name

Released a new version, now you can scrape emails with it.

Offline

#4 Sept. 21, 2013 04:44:26

sketman
Registered: 2013-01-22
Posts: 13
Reputation: +  0  -
Profile   Send e-mail  

Dynamic image name

Hello,

thank you for answer.

I am able to scrape the “Failed loading page (Protocol “mailto” is unknown)” with the email address.

But I have problem to load that page, because the image “@” linking to it has no stable name, however dynamic token. For example: //img. And this image name is changing upon each single page load, so I am not able to specify it. That was my original question. So can this dynamic image name be somehow overriden please?

Thank you.

Offline

#5 Sept. 21, 2013 06:29:50

admin
Registered: 2012-03-15
Posts: 289
Reputation: +  1  -
Profile   Send e-mail  

Dynamic image name

You can change XPath of the target, see here: http://www.fminer.com/select-targets-correctly/
Just change to a short xpath can make it work.

Offline

#6 Oct. 7, 2013 06:41:36

sketman
Registered: 2013-01-22
Posts: 13
Reputation: +  0  -
Profile   Send e-mail  

Dynamic image name

Thanks for your advice and for the link.
I have been trying to get the right path for several days, but no luck. I always end-up with path which contains variable or dynamic code.
For example for this page http://www.bandliste.de/Bands/In_Difference/122/
I always get the path
//a[@href='/extern/45642/']
,
or path with token
//img[@name='B955a5d7cc50acbd8b76c8223043b3bd8']

Any suggestion please?

Edited admin (Oct. 8, 2013 03:27:39)

Offline

#7 Oct. 8, 2013 03:26:15

admin
Registered: 2012-03-15
Posts: 289
Reputation: +  1  -
Profile   Send e-mail  

Dynamic image name

You can just select the link at first then select the menu of "with img ". Because all the @ links of different pages are with same image.

With my test, the XPath should be
 //a[img/@src='images/button/at1.gif']
, you can just copy it to your project.

Edited admin (Oct. 8, 2013 03:26:59)

Offline

#8 Oct. 9, 2013 08:58:07

sketman
Registered: 2013-01-22
Posts: 13
Reputation: +  0  -
Profile   Send e-mail  

Dynamic image name

It works…perfect!
Thank you very much for your help, admin.

Offline

#9 Oct. 9, 2013 09:20:56

admin
Registered: 2012-03-15
Posts: 289
Reputation: +  1  -
Profile   Send e-mail  

Dynamic image name

You are welcome.

Offline

Board footer

Moderator control

Powered by DjangoBB