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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:23:00+00:00 2026-05-26T17:23:00+00:00

I am currently looking to process and parse out information from this .txt file

  • 0

I am currently looking to process and parse out information from this .txt file. The file appears to be tab delimited. I am looking to parse out the base 16 value (ie. 000000) as the dictionary key and the company name (ie. Xerox Corporation) as the dictionary value. So, if for example I look up in my dictionary the key 000001, Xerox Corporation would be returned as the respective value.

I’ve tried parsing the .txt file as a csv reading the entry on every nth line but unfortunately there is no pattern and the nth number varies.

Is there any way to capture the value preceeding the term “base 16” for example and then the term that follows it to make a dictionary entry?

Many thanks

  • 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-26T17:23:01+00:00Added an answer on May 26, 2026 at 5:23 pm

    Well entries are seperated with two newlines. The second line always is the base16 one. The data before the first tab is the base16 key and the last is the company name.

    import urllib
    
    inputfile = urllib.urlopen("http://standards.ieee.org/develop/regauth/oui/oui.txt")
    data = inputfile.read()
    
    entries = data.split("\n\n")[1:-1] #ignore first and last entries, they're not real entries
    
    d = {}
    for entry in entries:
        parts = entry.split("\n")[1].split("\t")
        company_id = parts[0].split()[0]
        company_name = parts[-1]
        d[company_id] = company_name
    

    Some of the results:

    40F52E: Leica Microsystems (Schweiz) AG
    3831AC: WEG
    00B0F0: CALY NETWORKS
    9CC077: PrintCounts, LLC
    000099: MTX, INC.
    000098: CROSSCOMM CORPORATION
    000095: SONY TEKTRONIX CORP.
    000094: ASANTE TECHNOLOGIES
    000097: EMC Corporation
    000096: MARCONI ELECTRONICS LTD.
    000091: ANRITSU CORPORATION
    000090: MICROCOM
    000093: PROTEON INC.
    000092: COGENT DATA TECHNOLOGIES
    002192: Baoding Galaxy Electronic Technology  Co.,Ltd
    90004E: Hon Hai Precision Ind. Co.,Ltd.
    002193: Videofon MV
    00A0D4: RADIOLAN,  INC.
    E0F379: Vaddio
    002190: Goliath Solutions
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently looking for a way to get backtrace information under Windows, from C
I currently start a shell script from my Java by code looking like this:
I am looking into improving the backup process a group of animators use. Currently
I am looking for information concerning a proven process to interrogate the current user's
I'm currently looking at indexing an ASP website from Sharepoint and I need to
I'm in the process of learning WPF and am currently looking into application commands
I'm in the process of researching into various NoSQL technologies and currently looking into
I'm currently developing an application which needs a lot of system and process information,
I'm in the process of looking at taking some examples that are currently in
I looking at automating a mailshot process. Currently the mail merge is done in

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.