Code Monkey home page Code Monkey logo

feedthezombies's Introduction

FEED THE ZOMBIES

BCH compliance

What goes into Feed The Zombies

"Feed The Zombies" is a terminal application I built using Ruby, supported by some interesting gems, 2 of which require an API key to connect with. Its not very smart, or very flash, but it does beat the old "Lorem Ipsum" generated text for building webpages with!

What API keys will I need?

"News API is a simple and easy-to-use API that returns JSON metadata for headlines and articles live all over the web right now." register here

"Deep AI Text Generation API. This transformer-based language model, based on the GPT-2 model by OpenAI, intakes a sentence or partial sentence and predicts subsequent text from that input." register here

How to install Feed The Zombies

Clone this directory, and then open a terminal to the folder you have just cloned into.

./build.sh

Type the above into your terminal and hit enter to install.

Possible install errors

When re-installing this project, I ran into this error:

Building native extensions. This could take a while...
ERROR:  Error installing rest-client:
ERROR: Failed to build gem native extension.
  current directory: /var/lib/gems/2.5.0/gems/unf_ext-0.0.7.6/ext/unf_ext/usr/bin/ruby2.5 -r ./siteconf20191220-12110-1w674vc.rb extconf.rb
  mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

 extconf failed, exit code 1

 Gem files will remain installed in /var/lib/gems/2.5.0/gems/unf_ext-0.0.7.6 for inspection.
 Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/unf_ext-0.0.7.6/gem_make.out

After a Google search, I found multiple articles advising that installing ruby-dev could solve this. I installed it, and it fixed it. To do that, run apt-get install ruby-dev (might need sudo depending on your permissions).

If you run into issues, please let me know so I can fix/document them.

How to run Feed the Zombies

In the same terminal above, type:

ruby FTZ.rb

It pretty much guides you through all the steps from there. Enjoy!

Just in case...

To test that the connection to the AI text generator is live, users can copy paste the below script into their terminal:

curl \
    -F 'text=Random text of randomness' \
    -H 'api-key:[insert your api key]' \
    https://api.deepai.org/api/text-generator

feedthezombies's People

Contributors

miztrz avatar bianca-git avatar

Stargazers

 avatar

Watchers

 avatar

feedthezombies's Issues

News searches with some users inputted parameters not working

Error handling required - Users cannot put in multiple word searches and get a response.
Domain searches working
Date searches only working if you search for 1 key word and/or add a domain

  • string handling for the user parameter inputs
  • user warnings on date only searches

Clearer Setup Instructions

More detail needed for setup instructions, including (but not limited to)

  • what webservices are being used
  • how to get API keys for the webservices
  • what gems are being used
  • common errors

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.