Help Scraping Photo Titles from Flickr

Discussions and Tech Support related to website data extraction, screen scraping and data mining using iMacros.

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

Help Scraping Photo Titles from Flickr

by sleepysentry on Mon Feb 15, 2016 7:32 am

I am working on a project to help a photographer archive all of his photo info (namely titles) from Flickr. Here's an example:
https://www.flickr.com/photos/harold_da ... o9j8-7mTZU

I need a script that can:
1. Grab the photo title
2. Grab the photo URL
3. Save everything to a .csv file

Here's what I have so far for the photo title... it is grabbing "#EANF#" each time.
Code: Select all
VERSION BUILD=8920312 RECORDER=FX
TAB T=1
SET !ERRORIGNORE YES
TAG POS=1 TYPE=H1 ATTR=CLASS:<SP>meta-field<SP>photo-title<SP>&&ID:yui_3_16_0_1_1455545478543_1747
TAG POS=R1 TYPE=H1 ATTR=CLASS:<SP>meta-field<SP>photo-title<SP>&&ID:yui_3_16_0_1_1455545478543_1747* EXTRACT=TXT
SAVEAS TYPE=EXTRACT FOLDER=/Users/daniel/Desktop FILE=harold.csv


Any idea how I can get this to work?
sleepysentry
 
Posts: 4
Joined: Thu Feb 19, 2015 8:22 am

Re: Help Scraping Photo Titles from Flickr

by chivracq on Mon Feb 15, 2016 7:48 am

sleepysentry wrote:I am working on a project to help a photographer archive all of his photo info (namely titles) from Flickr. Here's an example:
https://www.flickr.com/photos/harold_da ... o9j8-7mTZU

I need a script that can:
1. Grab the photo title
2. Grab the photo URL
3. Save everything to a .csv file

Here's what I have so far for the photo title... it is grabbing "#EANF#" each time.
Code: Select all
VERSION BUILD=8920312 RECORDER=FX
TAB T=1
SET !ERRORIGNORE YES
TAG POS=1 TYPE=H1 ATTR=CLASS:<SP>meta-field<SP>photo-title<SP>&&ID:yui_3_16_0_1_1455545478543_1747
TAG POS=R1 TYPE=H1 ATTR=CLASS:<SP>meta-field<SP>photo-title<SP>&&ID:yui_3_16_0_1_1455545478543_1747* EXTRACT=TXT
SAVEAS TYPE=EXTRACT FOLDER=/Users/daniel/Desktop FILE=harold.csv


Any idea how I can get this to work?

Yep but sorry, you didn't follow up on any of your 2 previous Threads except for adding a quick "EDIT-- Problem solved!" in the second one without sharing your Solution like I asked, so that doesn't motivate much to want to help you again...

And I've already asked you to mention your FCI as well when you open a Thread (Required Info for me to react to Threads anyway) but you didn't comply and again in this Current Thread, and your Config is a bit "strange" anyway as you seem to be using some a bit older Version of iMacros for FF...

So good luck with other (Advanced) Users..., it's nice of you to want to help other People with your Scripts but you need to use the Forum a bit correctly for me to want to help you... 8)
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
chivracq
 
Posts: 6479
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)

Re: Help Scraping Photo Titles from Flickr

by sleepysentry on Mon Feb 15, 2016 2:32 pm

chivracq wrote:
sleepysentry wrote:I am working on a project to help a photographer archive all of his photo info (namely titles) from Flickr. Here's an example:
https://www.flickr.com/photos/harold_da ... o9j8-7mTZU

I need a script that can:
1. Grab the photo title
2. Grab the photo URL
3. Save everything to a .csv file

Here's what I have so far for the photo title... it is grabbing "#EANF#" each time.
Code: Select all
VERSION BUILD=8920312 RECORDER=FX
TAB T=1
SET !ERRORIGNORE YES
TAG POS=1 TYPE=H1 ATTR=CLASS:<SP>meta-field<SP>photo-title<SP>&&ID:yui_3_16_0_1_1455545478543_1747
TAG POS=R1 TYPE=H1 ATTR=CLASS:<SP>meta-field<SP>photo-title<SP>&&ID:yui_3_16_0_1_1455545478543_1747* EXTRACT=TXT
SAVEAS TYPE=EXTRACT FOLDER=/Users/daniel/Desktop FILE=harold.csv


Any idea how I can get this to work?

Yep but sorry, you didn't follow up on any of your 2 previous Threads except for adding a quick "EDIT-- Problem solved!" in the second one without sharing your Solution like I asked, so that doesn't motivate much to want to help you again...

And I've already asked you to mention your FCI as well when you open a Thread (Required Info for me to react to Threads anyway) but you didn't comply and again in this Current Thread, and your Config is a bit "strange" anyway as you seem to be using some a bit older Version of iMacros for FF...

So good luck with other (Advanced) Users..., it's nice of you to want to help other People with your Scripts but you need to use the Forum a bit correctly for me to want to help you... 8)


I will figure out the solution and post it. Would that make you happy?
sleepysentry
 
Posts: 4
Joined: Thu Feb 19, 2015 8:22 am

Re: Help Scraping Photo Titles from Flickr

by chivracq on Mon Feb 15, 2016 8:13 pm

sleepysentry wrote:I will figure out the solution and post it. Would that make you happy?

If you were asking on the Forum, I'm afraid you won't "figure out the solution", finish your 2 previous Threads a bit neatly (= useful for other Users searching the Forum with a similar Qt/Pb), and I'll be willing to do some Digging in your Qt/Pb in this Current Thread, if you posted all required Info at least I hope in your OP, I won't be asking 2(0) times...
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
chivracq
 
Posts: 6479
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)


Return to Data Extraction and Web Screen Scraping

Who is online

Users browsing this forum: No registered users and 4 guests

-->