Git Product home page Git Product logo

robtex-python's Introduction

Robtex Python

https://api.codacy.com/project/badge/Grade/8151c710cd704ddeb8575ee6dfbbd96e

Simple python wrapper for the Robtex API .

Installation

Stable release

To install Robtex Python, run this command in your terminal:

pip install robtex-python

This is the preferred method to install the Robtex API wrapper, as it will always install the most recent stable release.

If you don't have pip installed, this Python installation guide can guide you through the process.

From sources

The sources for Robtex Python can be downloaded from the Github repo.

You can either clone the public repository:

$ git clone git://github.com/fhightower/robtex-python

Or download the tarball:

$ curl  -OL https://github.com/fhightower/robtex-python/tarball/master

Once you have a copy of the source, you can install it with:

$ python3 setup.py install

Usage

Via Python

You can use Robtex Python in a script as follows:

import robtex_python
response = robtex_python.pdns_forward("example.com")

Via Command Line

You can use Robtex Python as a command-line tool as follows:

Usage:
    robtex_python --ip=<ip>
    robtex_python --as=<asn>
    robtex_python --pdns-forward=<hostname>
    robtex_python --pdns-reverse=<ip>
    robtex_python (-h | --help)
    robtex_python --version

Credits

This package was created with Cookiecutter and the fhightower/python-project-template project template.

robtex-python's People

Contributors

fhightower avatar vesche avatar wesinator avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

robtex-python's Issues

Are you getting DDoS protection by Cloudflare page in your response?

  • Robtex Python version:1.0.0
  • Python version: python3
  • Operating System: Ubuntu v16

Description

I'm trying to call the robtex_python.ip_query(<ip_address>) and I'm getting back a page response that has the DDoS protection by Cloudflare page. This is for any given IP address. I also tried to call the page directly using requests.get('https://freeapi.robtex.com/ipquery/<ip_address>/") and I get the same results. I am trying to call the free API to get back json data and have not been successful. Although I have no problems hitting the url manually via my browser.

What I Did

Added this line in my code:
response = robtex_python.ip_query(<any_ip_address>)

response.ok returns False

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

requests missing from package requirements

  • Robtex Python version:
  • Python version: 3.6
  • Operating System:

Description

requests missing from requirements. Won't run on clean install (such as virtualenv)

I had the same issue in some of my packages :/

What I Did


Convert readme to markdown

Sorry, this is a rant:

  • I strongly dislike restructured text.
  • I'm unable to deploy the readme in this package to pypi because:
HTTPError: 400 Client Error: The description failed to render in the default format of reStructuredText. See https://pypi.org/help/#description-content-type for more information. for url: https://upload.pypi.org/legacy/

and I don't have the time or patience right now to worry about it.

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.