Code Monkey home page Code Monkey logo

scrapesquirrel's Introduction

ScrapeSquirrel 🐿️

The world's easiest way of saving scraped data in an SQL database. Automatically creates SQL database & treats duplicates.

About

  • Dumps scraped pandas dataframes into SQL databases and mostly abstracts away SQL related code
  • Could be used to scrape information over time. All entered data is stored even if the scraped data changes, such as data from a daily stock price API
  • Built scrapesquirrel based on my personal workflows, but hope it works for you

Usage

import pandas as pd
from scrapesquirrel import ScrapeSquirrel

# Create dataframes
df1 = pd.DataFrame()
df2 = pd.DataFrame()

# Dummy data
df1['url']=[1,2,3,4]
df1['links']=[5,6,7,8]
df2['name']=['a','b','c','d']
df2['suffix']=['mr','mr','mrs','ms']

# Create one SQL database with 2 tables...
# "Store df1 in a database called datadb, in a table called first"
sqrl1 = ScrapeSquirrel(df1, 'datadb', 'first')
sqrl1.store()

# "Store df1 in a database called datadb, in a table called second"
sqrl2 = ScrapeSquirrel(df2, 'datadb', 'second')
sqrl2.store()
  • You can seamlessly change the database and table names as required

scrapesquirrel's People

Contributors

rahulgoel97 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.