Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: urlread struggles with google
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Adam Chapman

Posts: 170
Registered: 1/12/09
urlread struggles with google
Posted: Jun 17, 2013 3:10 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I'm trying to use urlread to get text from google news, with date filters:

s=urlread('https://www.google.co.uk/search?q=HSBC&safe=off&hl=en&gl=uk&biw=1920&bih=979&sa=X&ei=jKG8UYLfGYKqOrbIgOgJ&ved=0CCAQpwUoBg&source=lnt&tbs=cdr:1,cd_min:13/06/2013,cd_max:14/06/2013&tbm=nws');



If I copy and paste the url into a web browser, I see what I'm looking for.

However, url just seems to get the most recent news articles, as is demonstrated with:

s=urlwrite('https://www.google.co.uk/search?q=HSBC&safe=off&hl=en&gl=uk&biw=1920&bih=979&sa=X&ei=jKG8UYLfGYKqOrbIgOgJ&ved=0CCAQpwUoBg&source=lnt&tbs=cdr:1,cd_min:13/06/2013,cd_max:14/06/2013&tbm=nws','googlenews.html')


Opening the file that the cde above writes, it appears that matlab is not accessing the same url as the browser is.

If anybody has any ideas, it would be a massive help

Many Thanks
Adam



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.