Yahoo! Inbound Links API

27 November 2005   0 comments   Python

Powered by Fusion×

Had a quick play with Yahoo!'s Inbound Links API today. You use their web services API to check which other URLs a URL is linked to from. This can come in handy if you want to know which other sites make a link to your article. Googleblog is using this (obviously not by using the Yahoo! API); look at this blog post for example and scroll to the end of the text.

The inspiration came from Fredrik Lundh's term extraction example that I'm actually now use in a production site. So I basically took Fredriks code and modified it for Inbound Links.

Here's an example of how you can use it:

>>> from YahooInlinkData import inlinkData, printu
>>> for d in inlinkData(Get_Your_Own_Yahoo_App_ID,
"", results=5):
...     printu(d['title'])  
...     print d['url']

I don't think my example is going to impress the masses but hopefully it might inspire people to write their own little applications and continue to enjoy Fredriks lovely ElementTree.

Feel free now to download:


Your email will never ever be published

Related posts

The Search Engine Experiment 25 November 2005
CSS code of 29 November 2005
Related by keywords:
OpenID, Attribute Exchange, SReg, python-openid and Google 23 April 2010
More optimization of - CSS sprites 05 August 2009
The importance of being findable 15 April 2004
The Search Engine Experiment 25 November 2005