1. Check out our companion app, Forums for Android! Download from Google Play

Getting text from..

Discussion in 'Application Development' started by Sam Voss, Oct 18, 2010.

  1. Sam Voss

    Sam Voss Well-Known Member
    Thread Starter
    43

    Jun 25, 2010
    367
    44
    43
    Programmer, in school
    Wisconsin
    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
    18

    Feb 14, 2010
    96
    10
    18
    Classified.
    UK
    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
    38

    Apr 20, 2010
    142
    23
    38
    Student.. also software developer
    Netherlands

Share This Page

Loading...