开发者

Search MySpace by keyword using PHP class

I've come across several tools that search users by keyword, however, none that's open source.

I'm not familiar with the MySpace API and at first glance it doesn't seem like this option is available. I was hoping a PHP class exists for this sort of thing. So my question: how do I identify myspace users that have a keyword? Can it done throug开发者_运维技巧h the API or another route is needed?


I haven't looked at the API, but I would say if you can't find a search function in the API, your best bet would be to write a scraper.

Use PHP (you may need curl as well) to load the MySpace search page with your query. Then parse the source code of that page to find what you want.

If you can't find a keyword lookup in the API, and you can't do a keyword lookup/search through the website, you're unfortunately likely out of luck.


In case it's useful now, better late than never? They've opened up their API in the latest version allowing searching for a person by search term. See this as an example:

http://api.myspace.com/opensearch/people?searchTerms=ferrari&format=xml

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜