Good stuff mate, thanks a lot. I hadnt figured you'd do it in c++. It was then I realised I had posted my request on the wrong site, it was meant to go to a forum on autohotkey.com. But how and ever, I like your solution and I know a tiny bit about c++. These are some small issues that remain. Please excuse my stupidity but how would I set the output in the parsed.txt to equal:
edge:{source: "UserName" target: "FriendName1"}
This probably means setting the Username to a variable for the duration of the time it takes to process one page. The Username is always the first name on the page. Below is a copy of one page of the format that the source.txt will look like. And will probably help you understand what Im talking about.
Spoiler
bebo
bobbydays Search My Account Sign Out
Homepage My Friends Add Friends Mail School College
All White Board Photos Blog Friends Quiz Comments
Dylan Cross <dylan.cross>
Page 1 of 4 1 2 3 4 Next >>>
Geraldine O'Connell <gerbeenie>
Female, 21
Hometown Rathfarnham
Send a Message »
At th mo im in college, 3rd yr Clinical Measurement, DIT Kevin St. On placement now in gross hospitals! saggy boobs. Fellow Clins will know what I'm talkin bout!
Laura Boland <laura-boland>
Female, 21
Send a Message »
Will Conlon <willconlon>
Male
Hometown Kildare (in general) and occasionally Galway
Send a Message »
Jesus died and rose from the dead in 3 days. It took Jack Bauer less than an hour. And he's done it twice.
Dave . <davkavo2>
Male, 21
Hometown Clonee, Meath
Send a Message »
Here i am
Sarah Dalton <sadge1>
Female, 20
Hometown kildare
Send a Message »
.....yes sir i can hardcore!....
Greaney Clare <greaneyc>
Female, 21
Hometown Ballygreaney ( and yes it is a place)
Send a Message »
Only Known as Greaney to most, infact to most i dont even have a first name ( have yet to decide if that is a good thing, most famous people are only known by one name so i think ill go with its a...
Danilo Vukanic <mr-sassy-pants>
Male
Send a Message »
Jesus titty fuckin christ!
Eanna O'Shea <eannaoshea>
Male, 22
Hometown Baronstown West
Send a Message »
Here's a kiss! be thankful your gettin one, ya ug-o! Well, i'm fourth year of graphic design in Mountjoy square. Just finished thesis....woohoo. I love to travel, drink, listen to music, blah, sp...
Michele Macari <micstallion>
Male, 23
Hometown dunlaoghaire
Send a Message »
Niamh O d <niamhie21>
Female, 21
Send a Message »
im so not interesting, you should just leave my page right now. i said go. now. anyway you all know me, piss head student, bar worker, rent a secretary, student neurophysiologial technolgest (for...
Page 1 of 4 1 2 3 4 Next >>>
NOTE: Some of Dylan friends may not be listed above. If a members is not part of a School or College and has not selected to have an accessible homepage then they can be viewed by direct friends only.
HelpTermsPrivacySafety TipsTestimonialsContactAboutOur Blog
©2006 Bebo.com, LLC
bebo10:152:1144437081149
You'll notice that the extra braces around the "next page" link can screw up the program. If you could sort this out it would be great, because this thing will be copying a few thousand pages and it would save me a lot of labour! If not its ok.
BTW My mapping (aiSee.com) needs two things to be defined for it to work. One is each node, in this case represents one person and the code is as follows:
node: { title: "Username"}
I have to have a copy defining every user name like above. But only once! Duplicates throw up errors!
The second thing the mapping s/ware needs is the target and source link, in this case if the two people are friends. This is the code format of the graph, and at this stage you know everything about my project!
graph:{
node: {title: "UserName1"} //Every UserName must be defined only once
node: {title: "UserName2"}
node: {title: "UserName3"}
node: {title: "UserName4"}
edge: {source:"UserName1" target "Username3"} //Each link from one person to another
edge: {source:"UserName2" target "Username4"} // (Overlapping in this case doesnt matter)
edge: {source:"UserName2" target "Username1"}
}
I dont mean to annoy you with doing extra stuff, If you like doing this sort of stuff for the kicks and are interested in what I am doing, thats great. You will save me months of research! I'll paypal over the money right now as soon as I figure out how.