Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6964691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:57:23+00:00 2026-05-27T15:57:23+00:00

Let’s start by example. There’s a website, say it’s a clone of Twitter named

  • 0

Let’s start by example. There’s a website, say it’s a clone of Twitter named Tlitter. Tlitter, like twitter is constantly updated with new content (most of it is just a litter, hence the name). Unlike twitter, there’s no JSON/XML API to fetch content in a convenient way. In order to get data from it, you have to fetch good old HTML and parse it. It’s the only way of getting that content.

Tlitter admins are sometimes changing their mind. They may change website look and HTML code, in such a way that will render the code extracting the data non-working. You cannot predict when a change will be made. It can be made once a week, once a month or maybe… never.

You created an Android application that uses content from Tlitter to complement content from other source (say it’s twitter). Twitter is crucial and there are no problems with it, since it has a nice api, but Tlitter may give you some headache when it ceases to work. Let’s say that Twitter gives you the prices in shops and Tlitter gives you the discounts. App is still functional without Tlitter, but with Tlitter it’s just better and more complete.

You didn’t want to make a new release just to fix every Tlitter-related functionality, so you made an application on Google Appspot which acts like a proxy between your app and Tlitter. If Tlitter changes, you only have to update the proxy app and everything works again, for all of the users.

But, your application gained popularity and Google changed their pricing policy, introducing “Instance Hours” for Appspot. That two things made your app using almost all of the free quota. You don’t want to pay for Appspot, you just have to solve this problem somehow.

There’s more than one solution and probably there’s no perfect one. I’m asking you, how would you solve this problem? My ideas are as follows:

  1. Drop the idea of proxy app, process everything inside mobile app
    • Pros: No problem with Appspot
    • Cons: The need to update the app when Tlitter changes, more network traffic on user’s side
  2. Cache data inside proxy app and try to optimize it, or find a better cloud service
    • Pros: No problem with updates, probably faster response times
    • Cons: if the app will continue to gain the popularity it will eventually use all of the free resources, regardless of optimizations made
  3. Combine two solutions. Make application maintain some ‘Tlitter structure definition
    file’, hosted online. content from Tlitter is extracted according to the rules specified in the file, application checks (daily, or hourly) for an update of that file.

    • Pros: No need to update the app when time Tlitter changes
    • Cons: A very sophisticated solution, currently I have no idea how to implement it, possible security risks, etc.

The example provided may seem quite generic, but it models my problem almost perfectly. How would you solve it? I would go with solution 1, or 3 if I would find a good method of implementing it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T15:57:24+00:00Added an answer on May 27, 2026 at 3:57 pm

    For solution 3 you would want to look for some DSL or scripting language that you can update. Maybe jsoup is a good base. You would load a file containing the selector strings to retrieve that data. In the example below (from the jsoup webpage), you would essentially load the strings (#mp-itn b a) from a web service.

    Document doc = Jsoup.connect("http://en.wikipedia.org/").get();
    Elements newsHeadlines = doc.select("#mp-itn b a");
    

    Jsoup works straightforward on android.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say there is a graph and some set of functions like: create-node ::
Let's say I dynamically create a timer like this: System.Timers.Timer expirationTimer = new Timer(expiration
Let's say the Activity I want to start is named OccupyThePieShop I was previously
Let's say I can call a method like this: core::get() . What is the
Let's say I have a text file composed like this ##### typeofthread1 ##### typeofthread2
Let's say I have the following text: (example) <table> <tr> <td> <span>col1</span> </td> <td>col2</td>
Let's say I wanted to remove vowels from HTML: <a href=foo>Hello there!</a>Hi! becomes <a
Let's say I have an abstract parent class called shape, and that there are
Let's say I have table with column 'URL' whrere I store urls like this
Let's say that I have a set of relations that looks like this: relations

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.