Code Monkey home page Code Monkey logo

public_domains's Introduction

public_domains

Build Status

public_domains searches through a text (such as a novel like Moby Dick) and looks for possible host names to use. For more context about why such a thing was created see:

https://parkerhiggins.net/2022/11/public-sub-domains

Install

$ pip3 install public_domains

Use

Get a text, e.g. from Project Gutenberg:

wget https://www.gutenberg.org/files/2701/2701-0.txt

Run:

$ public_domains 2701-0.txt

tattooing.burned.like
fishermen.technically.call
violent.scraping.contact
irregular.between.here
verbally.developed.here
mizzen.rigging.like
eepeningly.contracted.like
tropic.whaling.life
trailing.behind.like
certain.fragmentary.parts
redundant.yellow.hair
personality.stands.here
wicked.miserable.world
...

Or if you prefer to do a "feeling lucky" search of gutenberg.org you can enter a title:

$ public_domains "Treasure Island"

famous.buccaneer.here
maroon.wriggling.like
keeping.better.watch
little.mountain.stream
admiral.benbow.black
breathing.loudly.like
breath.hanging.like
shirts.thrown.open
promontory.without.fail
feverish.unhealthy.spot
something.almost.like
following.important.news
lookout.shouted.land
spirits.eating.like
resumed.silver.here
stranded.beyond.help
trebly.worthless.life
including.checks.online
canvas.cracking.like
almost.entirely.exposed
flowers.ablowing.like
counting.hawkins.here
little.stranger.here
foliage.compact.like
strange.collection.like
seamen.aboard.here
creature.flitted.like
nighhand.fainting.doctor
crying.johnny.black
enough.little.place

If you'd like public_domains to check if the domain is available use the the --check option:

public_domains's People

Contributors

edsu avatar thisisparker avatar nemobis avatar johl avatar

Stargazers

Georg avatar  avatar yasser avatar Aspen Mayer avatar  avatar Kyle Mohr avatar Ned Zimmerman avatar Scott David Sanders avatar Luke Toop avatar Anthony Sorace avatar Mark Goody avatar Michael Bourke avatar DL Miller avatar Rob avatar Ranti Junus avatar Katherine Yang avatar  avatar Cat Stevens avatar Justin Myers avatar Gerald Rich avatar pajowu avatar Dr. Kirsten Rodine-Hardy avatar jk avatar Stephen Hahn avatar Joshua Sorenson avatar Nelson Chu Pavlosky avatar  avatar Ingrid Burrington avatar Aram Zucker-Scharff avatar Alexander Johnstone avatar Travis Briggs avatar  avatar Jana Marie Hemsing avatar frankfanslc avatar Leonard avatar noah avatar Scott Martin avatar  avatar Hugh Rundle avatar E avatar Benjamin Reimitz avatar Fred Condo avatar Stefan Bohacek avatar Álvaro Ceballos avatar Thomas Guignard avatar Ryan Baumann avatar Elizabeth Yalkut avatar stieglitzz avatar  avatar Filippo Giunchedi avatar Royce Williams avatar raffaele messuti avatar

Watchers

 avatar  avatar

public_domains's Issues

Consider improving performance

Perhaps it's overkill to change the ranking method, but I tested this on a 180 MB text file (probably not a good idea anyway) and it was still not done after some 20 hours of CPU time.

For comparison, an off-the-shelf BigramCollocationFinder.from_words(tokens).nbest(BigramAssocMeasures().pmi, 10000) takes about 5 minutes on the same machine and corpus, and it's probably easy to do better. (I cobbled together an example at https://framagit.org/nemobis/bots/-/blob/master/ngram_tlds.py .)

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.