Code Monkey home page Code Monkey logo

kerala-lottery-scraper's Introduction

Kerala-Lottery-Scraper

MIT License

A web-scraper in Python to extract links to lottery results (pdf) from KeralaLottery.com.

The script outputs the data in .csv format and sends an email to a default email address. It can also take an email address as a command-line argument.

The script runs in Headless Chrome mode enabling it to be deployed on Heroku and executed with Heroku CLI.

Scrapped Data To Email

Table of Contents

Packages

How To Deploy

I hope you built your project in a virtual environment. It's going to be lot easier that way.

Make sure you download and install Heroku CLI on your machine.

Create an account for yourself on Heroku.com

Steps:

  1. Open Commmand Prompt/Shell and move to your project directory (ex: cd d:\projects\scraper)

  2. Create a new repository in your project directory

       git init 
    
  3. Add everything in the directory to the repository

       git add . 
    
  4. Commit

       git commit -am "Initial Commit" 
    
  5. Login to Heroku from the command prompt

       heroku login
    

    A new browser instance will open up automatically, allowing you to login. Click on the login button and wait for the confirmation, after which you can close the tab and return to the command prompt.

  6. Creating a new app

       heroku create
    
  7. Push the git

       git push heroku master
    

Your app is now successfully deployed.

Run The App

   heroku run python scraper.py

Getting Started With Heroku

Take a look at this quick guide to Getting Started on Heroku with Python

Script Link

Link: scraper.py

Disclaimer: This script and information provided in this project is for educational purposes only

kerala-lottery-scraper's People

Contributors

shine-jayakumar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

kerala-lottery-scraper's Issues

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.