Getting text from..


Last Updated:

  1. Sam Voss

    Sam Voss Well-Known Member This Topic's Starter

    Joined:
    Jun 25, 2010
    Messages:
    367
    Likes Received:
    44
    So I was wondering, how can you pull text from a website, or something such as twitter/rss feeds and put them into an app? I'm looking for a way that I can pull either a tweet/feed post(only the newest) into my application and show it for whoevers using it, any ideas? I really don't know anything about getting info from pages.. thanks in advance!
     

    Advertisement
  2. GIR

    GIR Well-Known Member

    Joined:
    Feb 14, 2010
    Messages:
    96
    Likes Received:
    10
    Hi Sam!

    Darn good question....

    I was wondering if there was a port of beautiful soup into the android bytecode (.pyc) for quick prototyping, or if we were going to have to crunch through arrays..

    Hope I can find some info myself to post here, but if anyone knows of any links please post 'em up.

    Thanks,
    GIR

    P.S.
    So far ive found:
    About HTML parsing: http://blancer.com/tutorials/36152/...en-scraping-with-the-simple-html-dom-library/
    A Hacker News app for Android; e.g. a sample app that does site scraping (shame is aspx) : http://ifdefined.com/blog/post/A-Hacker-News-app-for-Android.aspx
    Android - Options for pulling data from a website? (HTML); http://efreedom.com/Question/1-3817252/Android-Options-Pulling-Data-Website-HTML

    Still no luck on finding a code sample, but http://developer.android.com/reference/android/text/Html.html might be worth investigating further.

    Best effort to date: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/text/Link.html

    BUT if anyone has source sample code it would be hugely appreciated... ;-)
     
  3. id0001

    id0001 Well-Known Member

    Joined:
    Apr 20, 2010
    Messages:
    142
    Likes Received:
    23

Share This Page

Loading...