Code Monkey home page Code Monkey logo

university-domains-to-txt's Introduction

University Domains and Names Data List & API with Domain Extraction Script

This repository is a fork of the original University Domains and Names Data List & API, extended to include a Python script for extracting university domain data into a .txt file. It utilizes the comprehensive JSON dataset of university domains, names, and countries from around the world, which may be used as an allowlist or blocklist, depending on the specific consumer needs.

Features

  • A JSON file containing a detailed list of universities and their associated domain names, based on University Domains and Names Data List & API by Hipo.
  • A Python script that allows for the extraction of these domains to a .txt file, which can be used for various purposes such as domain validation or data analysis.
  • A finished extract from November 2023, if running the Python script is not an option.

Example Use Cases:

  • Validate email domains efficiently by cross-referencing with the university domain list.
  • Derive a user's university and country based on their email domain automatically.

Using the Python Script

To extract university domains to a .txt file, use the provided Python script extract_domains_to_txt.py with the following usage:

python extract_domains_to_txt.py [-L local_file_path]

If the -L option is not specified, the script will by default download the latest data from the Hipo GitHub repository.

Using the Original JSON Data

The original dataset is located in the world_universities_and_domains.json file and is structured as follows:

[
    ...
    {
        "alpha_two_code": "TR",
        "country": "Turkey",
        "state-province": null,
        "domains": [
            "sabanciuniv.edu",
            "sabanciuniv.edu.tr"
        ],
        "name": "Sabanci University",
        "web_pages": [
            "http://www.sabanciuniv.edu/",
            "http://www.sabanciuniv.edu.tr/"
        ],
    },
    ...
]

Original Hosted API

For small projects or exploratory purposes, you can use the free hosted API sponsored by Hipo. For larger projects, consider hosting the data on your own server.

Example API requests:

  • http://universities.hipolabs.com
  • http://universities.hipolabs.com/search?name=middle
  • http://universities.hipolabs.com/search?name=middle&country=turkey

Contribution

Contributions to this project are welcome. If you find any data inaccuracies or have updates, please open a pull request or create an issue.

Contributors

This project exists thanks to all the people who contribute. A list of original contributors can be found here.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Credit goes to the original creators and contributors of the University Domains and Names Data List & API.

Created and maintained by Alen Peric

university-domains-to-txt's People

Contributors

yigitguler avatar silvagustin avatar zsubzwary avatar alanhamlett avatar dakshshah96 avatar aviiciii avatar dl-eric avatar co-bby avatar enisbt avatar elliotwutingfeng avatar thatomokoena avatar tunavargi avatar alenperic avatar sphaxa avatar onlined avatar isaiascuevas avatar markperri avatar tugberkozkara avatar yqopensource avatar huseyinsimsekk avatar bcwood avatar jarek-t avatar smith120bh avatar n1kio avatar iamstiil avatar sudeshana avatar suchenzang avatar anwilli5 avatar jaikarans avatar maizergomes avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.