php read links rss [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions must demonstrate a minimal understanding of the problem being solved. Tell us what you've tried to do, why it didn't work, and how it should work. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
i was wondering, how would i go about setting up a php code such that when someone enters a url into a form i would like to extract the name of the webpage and a photograph similar to what happens in facebook when you put a link on someones wall, you get the title of the link and picture.
Do i have to read an rss feed or what ?

Rss feed are XML therefore you should be able to DOM or SAX in conjunction with Xpath to retrieve these informations by hand.
Zend_Feed provides an easy way to work with feeds (either RSS or Atom).
$feed = Zend_Feed_Reader::import('http://www.planet-php.net/rdf/');
$feed->getTitle();
Concerning the preview picture, I don't know any free and out of the box solution.
You can take a look at thumbshots.org which provides free thumbnails for websites which in DMOZ but requires a paying subscriptions for others.
You can also try http://www.guangmingsoft.net/htmlsnapshot/html2image.htm which is well know and available on Linux, but still not free.

Related

how to get prices from Playstation Store [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I guess it is loaded by ajax.
I already tried CURL, DOMDocument and PHP Simple HTML DOM Parser
Details:
I'm trying to get the price of games on Playstation Store. I have an url like https://store.sonyentertainmentnetwork.com/#!/en-us/jogos/shadow-of-the-colossus/cid=UP9000-NPUA80677_00-SOTC000000000001 and I want to get the price. <div class="price">$19.99</div>
I just noticed that if you check the source code of the page, it does not have any element displayed on page, that is because I believe all is loadaded by something like ajax and I guess PHP parses will never work here.
I tried Jquery AJax(), Get() and Load() functions and I did not get success. Some problem with crossdomain.
There is a website called PSN Prices that can do it.
Additional Info:
It is totally for personal purpose, I just want to do some kind of wishlist and follow prices by myself.
Sorry my english.
The price is retrieved through JSON:
https://store.sonyentertainmentnetwork.com/chihiroview/storetree2?https%3A%2F%2Fstore.sonyentertainmentnetwork.com%2Fstore%2Fapi%2Fchihiro%2F00_09_000%2Fcontainer%2FUS%2Fen%2F999%2FSTORE-MSF77008-BASE%3FsessionCountry%3Dus%26sessionLang%3Den%26geoCountry%3DPT%26size%3D30
search for 19.99
"display_price":"$19.99"
EDIT:
Game url:
https://store.sonyentertainmentnetwork.com/#!/en-us/jogos/shadow-of-the-colossus/cid=UP9000-NPUA80677_00-SOTC000000000001
JSON url:
https://store.sonyentertainmentnetwork.com/store/api/chihiro/00_09_000/container/US/en/999/UP9000-NPUA80677_00-SOTC000000000001
Using http://jsonformatter.curiousconcept.com/ to make it easier, it seems you need to get
default_sku->display_price
Have you tried include the site (with the price) within an iframe and then accessing the data with javascript/jquery?

Get the source code of a web page after it has been modified by jquery in php [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
here is an example, say every item in each list was clicked on http://katproxy.com/the-big-bang-theory-tv8511/, how would you proceed to get the source code of the modified web page using php considering the fact that the url has not changed (file_get_contents is probably out of the question).
Thank you!
Using PHP? You can't, not without fetching the page source and evaluating its JavaScript, which is obviously quite impractical.
The "page" hasn't change, only your in-browser representation of the DOM has been modified. You would need PHP to talk to your browser, and ask for the state of its DOM, not the remote server, which cannot possibly serve up the HTML representation of your browser's current DOM.

how can i play youtube video with php like a proxy [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
this is site
www.proxfree.net
i live in pakistan. youtube blocked here. so i watch the youtube from this site
www.proxfree.net
kindly anybody php expert help me how can make a youtube watch script like proxfree.net. waiting for help. Thanks in advance
In short (since this question doesn't deserve any better answer as it shows absolutely no effort):
Rent a server in a country that doesn't block YouTube
Make sure the webhost allows proxy-like functionality
Create a form you'll use to input the external website URL
Use cURL to communicate with that external website
There are tons of resources about this. Here's one: http://www.makeuseof.com/tag/create-online-proxy-server-minutes/

Parsing data from external website [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions must demonstrate a minimal understanding of the problem being solved. Tell us what you've tried to do, why it didn't work, and how it should work. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
What I'm trying to do is parse a data table from this link and similar links on the site.
Basically it shows the water levels in different parts of Ontario. I want to get the data table and make my own graph.
Can someone point me in a direction to do this?
Is it possible to do without PHP?
Target link
Is it possible to do without PHP? Absolutely!
I suggest using Yahoo! Query Language (YQL).
What is YQL?
The Yahoo! Query Language is an expressive SQL-like language that lets
you query, filter, and join data across Web services. With YQL, apps
run faster with fewer lines of code and a smaller network footprint.
-- YQL Homepage
Just take a look at YQL Console, there's some nice examples at the bottom of the right panel which titled by DATA TABLES.
Another thing that makes me feel is the awesome THE REST QUERY feature.
You can use this API to get access to the query result in XML or JSON format.
There's also a full documented user guide you can use to find your answers.
Just give it a try, and I promise you will ♥ that.

Need some help with Twitter/Blackbird Pie [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I'm having a lot of trouble working through the API for Blackbird Pie, especially since their API isn't actually an API but is apparently just a blog.
Here's the API link from Blackbird Pie.
I want to be able to take in a unique tweet link that a user enters into my MySQL database and output them to a page using a query and PHP but I'm not really sure how to go about doing this. Searches just reveal methods for embedding tweets manually which is not what I want.
Thanks in advance.
Pindatjuh makes a good point. So if I'm understanding this your basicly building a twitter feed, but you don't want it to display via json or xml from twitter. You could write a little phpscript to scrape the info and before you throw it into the database have them confirm if the information is correct. If I'm understanding you correctly you might want to check out this scraper for IMDB.
http://web3o.blogspot.com/2010/10/php-imdb-scraper-for-new-imdb-template.html
You could probably modify it to your needs.
One more suggestion is the json feed I wrote. Instead of echoing the output you could throw it into the database.
PHP JSON Twitter Feed Improvement
Hope this gives you somewhere to start! Happy Coding.

Categories