Code Monkey home page Code Monkey logo

bitscraper's Issues

Clean up stock info response

This is an example of response of get_stock_info():

    "denominazione": "TRIPADVISOR",
    "codice_isin": "US8969452015",
    "codice_alfanumerico": "TRIP",
    "prezzo_minimo": "18.98",
    "quantit\u00e0_prezzo_minimo": "80.00",
    "prezzo_massimo": "20.185",
    "quantit\u00e0_prezzo_massimo": "100",
    "prezzo_ufficiale": "19.4114",
    "var._%": "+6.58",
    "prezzo_riferimento": "18.98",
    "prezzo_prima_apertura": "0.00",
    "numero_aperture": "0",
    "ora_apertura": "00000000",
    "ultimo_prezzo_in_continua": "18.98",
    "quantita'_totale": "1 625",
    "controvalore_totale": "31 543.60",
    "numero_contratti_totale": "14",
    "prezzo_di_chiusura": "0.00",
    "quantita'_asta_di_chiusura": "0",
    "prezzo_di_controllo": "--.--",
    "capitale_sociale": "--.--",
    "numero_di_azioni": "126 500 138",
    "valore_nominale": "--.--",
    "min._quant._contrattabile": "1",
    "valuta_in_cui_e_espresso_il_capitale": "DOLLARI USA",
    "settore": "\u00a0",
    "sottosettore": "\u00a0",
    "note_listino": "\u00a0",
    "numero_cedola_staccata": "\u00a0",
    "data_stacco_cedola": "19/11/2019",
    "importo_dividendo": "--.--"
}```

There are some fields that maybe should be cleaned up, like "quantita'_totale", "controvalore_totale" etc, that present text that can be parsed as number 

Refactor classes one per category

Since the borsaitaliana.it pages are so different among them, might be appropriate to create a class for each type of product in order to avoid potential regressions

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.