Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




1366 posts

Uber Geek
+1 received by user: 16


Topic # 65240 31-Jul-2010 17:22
Send private message

Hi

I would like to place a utility on my site which lets people share links, similar to facebook.
Basically users would type in a URL and the scrapper would grap the title of the page, and maybe the first few lines of the main article. I assume this would not break copyright rules as facebook does this?

anyway does anyone have any idea or any experience in this area. Any pointers would be great?
Are their any techniques i could search for on google to help me out, or maybe a tutorial?

thanks

Create new topic
1818 posts

Uber Geek
+1 received by user: 52

Trusted

  Reply # 360728 31-Jul-2010 17:47
Send private message

One think to keep an eye on is the use of short urls that use redirection to go to the site referenced.
It sounds like a pretty easy thing to write in php.

Can't think of any tutorial sites that could help ya though.

49 posts

Geek
+1 received by user: 2

Subscriber

  Reply # 360730 31-Jul-2010 17:50
Send private message

Have a look at this page... http://wiki.developers.facebook.com/index.php/Facebook_Share/Specifying_Meta_Tags

This'll give you an idea of what facebook looks for when scraping a page.

The techniques for doing the actual scraping involves making a web request from code and parsing the response for things like the facebook meta tags or the more generic HTML tags and elements.

How you do this depends on the programming language you're using.

Just my 2c, hope this helps...

 
 
 
 




1366 posts

Uber Geek
+1 received by user: 16


  Reply # 360734 31-Jul-2010 17:54
Send private message

cheers guys, i will be using coldfusion and i have managed to find a few links on the web for tutorials, will post them here when i have checked them out for future use.

Create new topic



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.