Git Product home page Git Product logo

opennasa's Introduction

openNasa

Preview

This software can parse pictures from the Nasa server

๐Ÿ”ป Register an API key(recommended): https://api.nasa.gov/index.html#signUp

You can use this API Keys:

gyxu6CjGjk6emd5lHPwTAuHk7d1mDW2z0UpAKqod GjGlCo3HVL0i9F3cLTl5Ma66CIaP8ct1evHONPxd
IQz7ccI0XW3JvWqgmq6X3XbzhcDF1kMqvt88ohei NKJJg9fSLANIDTelc1IwuYjgoySmgehHH73ByzIQ
j7R3c4rmgeeW8fo9Ol08rLXtmE3G7tkJE6XlwmgC Q0kTGij4zDfhFtEGuhY9oOPtBqWyGx7s2Me7bf8l

About program

๐Ÿ”บ This program receives the user's settings, then, based on them, makes requests to NASA API, can form an html page if the user wants this, or just display the results in the terminal;
๐Ÿ”บ The code of the program is readable for the average user, I tried to write it competently, I signed the important points;
๐Ÿ”บ The results will not be repeated, thanks to the _history variable;
๐Ÿ”บ Now there is customization of the program. To do this, edit the modules/config.py file to your liking;
๐Ÿ”บ If the project gets 10 stars, I will move the code to Vue.js

Screenshot

Preview

Install program

๐Ÿ‘จโ€๐Ÿ’ป You can use a one-line code installation

git clone https://github.com/rodukov/openNasa && cd openNasa

Using the program

โ„น๏ธ To understand how to use the program, you need to write the --help flag

$ python3 client.py --help
usage: client.py [-h] [-k KEY] [-b BUILD] [-y YEAR] [-m MONTH] [-d DAY]
                 [-c COUNT]

Information about using the openNasa software

optional arguments:
  -h, --help            show this help message and exit
  -k KEY, --key KEY     NASA API key
  -b BUILD, --build BUILD
                        If True the script will create an html page, if False
                        it will output the results to the terminal
  -y YEAR, --year YEAR  Enter the desired year, for random results write
                        'random'
  -m MONTH, --month MONTH
                        Enter the desired month, for random results write
                        'random'
  -d DAY, --day DAY     Enter the desired day, for random results write
                        'random'
  -c COUNT, --count COUNT
                        Enter the number of articles, for example, '30',
                        without quotes

Examples of use

๐Ÿ“Œ This example will create an html page with 30 articles and random dates

python3 client.py --key gyxu6CjGjk6emd5lHPwTAuHk7d1mDW2z0UpAKqod --build True --year random --month random --day random --count 30

๐Ÿ“Œ The example will also build an html page, but will only highlight articles from 2020. Number of articles 25

python3 client.py --key gyxu6CjGjk6emd5lHPwTAuHk7d1mDW2z0UpAKqod --build True --year 2020 --month random --day random --count 25

๐Ÿ“Œ This example will not build an html page, but will display the results in the terminal. Dates are random. Number of results 35

python3 client.py --key gyxu6CjGjk6emd5lHPwTAuHk7d1mDW2z0UpAKqod --build False --year random --month random --day random --count 35

openNasa API

You can build your own application with openNasa api. Just import modules/nasa_scrape.py

opennasa's People

Contributors

rodukov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

rokaden jorik041

opennasa's Issues

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.