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 8876373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:11:56+00:00 2026-06-14T19:11:56+00:00

I am looking at building an app that will display a monthly journal. There

  • 0

I am looking at building an app that will display a monthly journal. There is no XML for the journal, they just change the Title header and URL for the PDF each month. This is always stored the same place in source code, so I am looking at finding all the text within the

div class=entry clearfix post /div

Tag, and then extracting the first URL. I have worked on parsing XML before, but never HTML. What would be my best option for this?

UPDATE:

Only at one point in the Source code does the page say To Download the PDF, click here. So, I set up the following scanner:

NSURL *url = [NSURL URLWithString:@"http://www.thejenkinsinstitute.com/Journal/"];
NSString *content = [NSString stringWithContentsOfURL:url];
NSString * aString = content;
NSMutableArray *substrings = [NSMutableArray new];
NSScanner *scanner = [NSScanner scannerWithString:aString];
[scanner scanUpToString:@"<p>To Download the PDF, <a href=\"http://michaelwhitworth.com/wp-content/HE22.pdf\">" intoString:nil]; // Scan all characters before #
while(![scanner isAtEnd]) {
    NSString *substring = nil;
    [scanner scanString:@"<p>To Download the PDF, <a href=\"" intoString:nil]; // Scan the # character
    if([scanner scanUpToString:@"\"" intoString:&substring]) {
        // If the space immediately followed the #, this will be skipped
        [substrings addObject:substring];
    }
    [scanner scanUpToString:@"#" intoString:nil]; // Scan all characters before next #
}
NSLog(@"Here is the Substring%@", substrings);
// do something with substrings
[substrings release];

In console, the first thing to be returned is the URL of the PDF, but it includes much more. Here is a brief excerpt.

"2012-11-23 15:33:36.383 Jenkins[8306:c07] Here is the Substring(
"http://michaelwhitworth.com/wp-content/HE22.pdf",
"#8220;As the Bible School Goes So Goes the Congregation&#8221; by Ira North</a></p>\n<p style=","

What am I doing wrong to keep this from giving me just the URL, and nothing more?

  • 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-06-14T19:11:57+00:00Added an answer on June 14, 2026 at 7:11 pm

    I did something similar, I put up a small web service (API which was basically a simple Ruby app that was scrapping the html that I needed, and returned it in a REST way. The Web service/API is a good idea since if anything change in the HTML (like the element change of id), you don’t have to update your iOS app to just change path of the node you’re parsing.

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

Sidebar

Related Questions

I'm looking at building a simple web app that will expose an API that
I'm currently building a web app that will take some info from a database
This is the case I am building app that will be localized via strings
I'm building a web app that many people will be using at the same
I'm building a web app using jquery mobile that will have lots of images
I'm building a non-public web app that will be used as info-monitor. As such,
I'm building an Android app that will communicate with a REST service using HTTP
I'm building an app that will use an expandable listview as the main user
I am building an Android App that will communicate over TCP with a server.
I'm looking at building a simple app based around location. Obviously given that lots

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.