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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:24:00+00:00 2026-06-13T05:24:00+00:00

I have a desire for a functionality in my app that lists plug sizes

  • 0

I have a desire for a functionality in my app that lists plug sizes for different countries, and I found a nice wikipedia page that has this data:

Mains electricity by country

If you scroll down you can see that the data is presented into a table. Since there is no Wikipedia API, I have to insert the data into a PLIST right? Is there another way to do this? How can I parse these tables into a dictionary or an array?

  • 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-13T05:24:01+00:00Added an answer on June 13, 2026 at 5:24 am

    I have written a Wikipedia API Wrapper for Objective-C there you can get the html source of this wikipedia entry. With a DOM Parser you can find the table and loop over the entries and write it into a dictionary.

    Unfortunately the table you need doesn’t have an id. But you could search for one of the header words in the table step out one element and get the table.

    https://github.com/prine/WikiApiObjectiveC

    I just checked. These are the only four lines you need to fetch the html source of your desired article.

    WikipediaHelper *wikiHelper = [[WikipediaHelper alloc] init];
    wikiHelper.apiUrl = @"http://en.wikipedia.org";
    
    NSString *searchWord = @"Mains_electricity_by_country";
    
    NSString *htmlSource = [wikiHelper getWikipediaHTMLPage:searchWord];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page with several sets of radio buttons that are used to
Due to a client's desire to have URLs that defy Cake logic I have
I have a Windows desktop application that I want to add some functionality to.
I am working on an iOS 5 app. I have a view controller that
I'm building an app that provides functionality for both consumers and businesses. In creating
I have a User model that, in my mind, has two show actions: A
I have an application with the desired functionality. Howerver, at certain times toasts are
I have two device: HTC Desire with Android 2.2 Froyo and HTC Evo 3D
I have a program that tries to shrink a double down to a desired
I have the following XPATH line: //det[@nItem=1]/prod/cProd That successfully selects the desired node using

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.