Extract facebook user ID

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:


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.

Extract facebook user ID

by sportyspice on Tue Apr 23, 2013 5:45 am

I want to create a simple script that will extract a person's user ID to a text a file. Facebook IDs are only found in the HTML source code, and always come after this code:
Code: Select all
 data-referrer="pagelet_timeline_main_column" data-gt="{"profile_owner":"

So with the ID itself it looks something like this:
Code: Select all
 data-referrer="pagelet_timeline_main_column" data-gt="{"profile_owner":"100000941419105"

100000941419105 is the user ID, which is what I want to get. I'm guessing this can be done with search and regex but I dont know how to do it myself. Can anyone help please?
Posts: 1
Joined: Tue Apr 23, 2013 5:39 am

Return to Data Extraction and Web Screen Scraping

Who is online

Users browsing this forum: No registered users and 1 guest