Git Product home page Git Product logo

swot's Introduction

swot

If you have a product or service and offer academic discounts, there's a good chance there's some manual component to the approval process. Perhaps .edu email addresses are automatically approved because, for the most part at least, they're associated with American post-secondary educational institutions. Perhaps .ac.uk email addresses are automatically approved because they're guaranteed to belong to British universities and colleges. Unfortunately, not every country has an education-specific TLD (Top Level Domain) and plenty of schools use .com or .net.

Swot is a community-driven or crowdsourced library for verifying that domain names and email addresses are tied to a legitimate university of college - more specifically, an academic institution providing higher education in tertiary, quaternary or any other kind of post-secondary education in any country in the world.

Installation

Install swot with pip:

pip install swot

Usage

>>> import swot

>>> swot.is_academic("[email protected]")
True
>>> swot.is_academic("[email protected]")
False

# Url's work as well
>>> swot.is_academic("https://www.brown.edu")
True
>>> swot.is_academic("http://web.mit.edu:8080")
True

# We can also get school names
>>> swot.get_school_name("[email protected]")
["Cornell University"]
>>> swot.get_school_name("harvard.edu")
["Harvard University"]

swot's People

Contributors

afeld avatar atcastells avatar benbalter avatar bup3 avatar dorothyhelene avatar ertugrulcetin avatar fcroc avatar haroenv avatar harshadsabne avatar johndbritton avatar kasienkanowicka avatar leereilly avatar lyzidiamond avatar martin-rueegg avatar mateunho avatar mik-laj avatar mkcode avatar nathanshox avatar oluwasetemi avatar palaxer avatar pchaigno avatar reidweb avatar rolandspannagl avatar sannithibalaji avatar santhoshmenon avatar steinam avatar sushramesh avatar tarebyte avatar tmcw avatar zhedar avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

klash-group

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.