Giter VIP home page Giter VIP logo

scrapyproyectofinal's Introduction

README

Angular

  1. Crear un nuevo proyecto en angular, Ng new ("El nombre del nuevo directorio").
  2. Copiar datos necesarios enviados.
  3. Entrar en VScode o en una libreria y ejecutarlo en ng serve -o.

Python

Selenium

Para que funcione correctamente tienes que usar chrome y descargarte el driver referente a tu version y poner bien las rutas en el fichero scrapy.py

Pandas

Importamos panda mediante el

import pandas as pd

Creación de csv con python

import csv 
with open('ejemplo.csv', 'w') as csvfile:
   fieldnames = ['filtro1', 'filtro2', 'filtro3']
   writer  = csv.DictWriter(csvfile, fieldnames = fieldnames)
   writer.writeheader()
   writer.writerow({'filtro1' : 'Marta','filtro2' : 'Marco', 'filtro3' : 'Marso'})

print("datos insertados")

Lectura de csv con python

import csv
with open('ejemplo.csv') as File:
    reader = csv.reader(File, delimiter=',', quotechar=',',
                        quoting=csv.QUOTE_MINIMAL)
    for row in reader:
        print(row)

Actualizar datos de csv con python usando pandas

import pandas as pd 

df = pd.read_csv("ejemplo.csv") 
df.loc[0, 'filtro1'] = 'Sandra'
df.to_csv("ejemplo.csv", index=False) 
print(df)

Bibliografía

Leer csv Actualizar csv []

scrapyproyectofinal's People

Contributors

jfgalo141 avatar fernando-cg avatar mariamoraf 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.