Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maartenvanvliet/swotex
Identify email addresses or domains names that belong to colleges or universities. Help automate the process of approving or rejecting academic discounts. Port of https://github.com/leereilly/swot
https://github.com/maartenvanvliet/swotex
Last synced: 28 days ago
JSON representation
Identify email addresses or domains names that belong to colleges or universities. Help automate the process of approving or rejecting academic discounts. Port of https://github.com/leereilly/swot
- Host: GitHub
- URL: https://github.com/maartenvanvliet/swotex
- Owner: maartenvanvliet
- License: mit
- Created: 2018-08-17T20:04:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T04:57:13.000Z (almost 2 years ago)
- Last Synced: 2024-09-21T14:13:12.637Z (3 months ago)
- Language: Elixir
- Size: 601 KB
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SwotEx
[![Build Status](https://travis-ci.com/maartenvanvliet/swotex.svg?branch=master)](https://travis-ci.com/maartenvanvliet/swotex) [![Hex pm](http://img.shields.io/hexpm/v/swotex.svg?style=flat)](https://hex.pm/packages/swotex) [![Hex Docs](https://img.shields.io/badge/hex-docs-9768d1.svg)](https://hexdocs.pm/swotex) [![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
Identify email addresses or domains names that belong to colleges or universities. Help automate the process of approving or rejecting academic discounts.
This is a port of [Swot](https://github.com/leereilly/swot) See there for more information.
The list of valid domains is far from complete. If any are missing, please file a PR.
## Installation
The package can be installed by adding `swotex` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:swotex, "~> 1.0.0"}
]
end
```## Usage
```elixir
iex> SwotEx.is_academic?("stanford.edu")
trueiex> SwotEx.is_academic?("[email protected]")
trueiex> SwotEx.institution_name("stanford.edu")
"Stanford University"iex> SwotEx.institution_name("[email protected]")
"BRG Fadingerstraße Linz, Austria"
```## Documentation
The docs can be found at [https://hexdocs.pm/swotex](https://hexdocs.pm/swotex).
## License
See [LICENSE](./LICENSE).