Giter Site home page Giter Site logo

python-echo's Introduction

python-echo

Scripts for querying and parsing echo indices

SETUP

  • clone this repo
  • [Optional] download PyCharm IDE
    • Open repo in PyCharm and setup a venv using python3
    • open terminal in IDE and install requests
      • pip3 install requests
  • If not using PyCharm install requests on your system
    • pip3 install requests

Running

  • Get the echo_kinana_sid cookie from your browser
    • Save that cookie in the cookie file in the root of this repo
    • The cookie can also be provided via the command line using -c the_cookie_value
  • Build the query you want in echo select inspect copy the request and save it in the /queries/query.json
  • Update the script query_echo.py to set the INDEX you are wanting to query, for example atlas-prod-checkout
    • You can also pass in the index when running this script from the terminal like so python3 query_echo.py -i atlas-prod-checkout

Write some code to parse your data

  • parse_echo.py contains examples of how to parse the echo response each use case will be unique, if you think what you are doing will be helpful in the future please commit those changes back here.

NOTES

  • This project is using Python3 not Python2 so when running these script make sure you are using python3 query_echo.py for example.
  • You will need to get a new cookie no idea how often... if you are getting a non-200 response (logged to the terminal) check that first.
  • The query you get from echo will have a size at the top, that is how many records to pull. The max is 10000.
  • Sometimes JSON data gets corrupted in echo due to the credit card masking they have so you may have to try/catch to bypass invalid hits.

python-echo's People

Contributors

bscanlon-kr avatar

Watchers

 avatar

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.