Question

I am an artist from new zealand. Its a media(news) header "puller", I'm not sure how it will work. I understand that this is a place for answering questions directly related to code, but here we go. Is there a way to pull <h1> headers from news sites? Through some sort of google Api system... i'm not sure what i'm talking about. Thats why I need you- A master of Code.

But ideally it would be cool, to show some sort of timeline of news headers in a visual way. For example, news headers from different sources arranged on a page with a search term.

http://www.zealmilitia.com/list.html this one is with the keyword Ukraine(all done mainly atm)

Hopefully someone sees the potential in this and wants to come on board (obviously sharing in the treasures). It could be a very cool way to share news stories on facebook etc.

I'm not a coding master but i understand some.

My question is, is this even possible?

thanks Jo

Was it helpful?

Solution

You cannot really pull element from any other site due to cross origin policy : https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy

in more simple words , you cannot pull what is not yours , however you may consider using iframes , only to monitor or view what is not yours.

http://www.w3schools.com/tags/tag_iframe.asp

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top