Skip to content

Simple quini6 result crawler made in python. It is just a simple proof of concept about simple python commands.

Notifications You must be signed in to change notification settings

imanzano/Quini6-Crawler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quini6-Crawler

Simple quini6 result crawler made in python. It is just a simple proof of concept about simple python commands.

Simple parsing example with Apache Zeppelin

import sys.process._

val content = sc.textFile(<YOUR PATH HERE>"/output/out.csv")

case class Card(card:Integer, d:Integer,m:Integer,a:Integer, t : String, nro : Integer)

val cards = content.map(s=>s.split(";")).filter(s=>s(0)!="\"nro\"").map(
    s=>Card(s(0).toInt, 
            s(1).replaceAll("\"", "").split("/")(0).toInt,
            s(1).replaceAll("\"", "").split("/")(1).toInt,
            s(1).replaceAll("\"", "").split("/")(2).toInt,
            s(2).replaceAll("\"", ""),
            s(3).replaceAll("\"", "").toInt
        )
)

cards.toDF().registerTempTable("cards")

Run

In order to run these you need Python 3 installed along with the requirements (it is recommended to install these in a virtualenv):

pip install -r requirements.txt

About

Simple quini6 result crawler made in python. It is just a simple proof of concept about simple python commands.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages