pesanteur / Nikpy

Simple scraper to pull data from a website.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nikpy

Simple scraper to pull data from a website.

What's Nikpy?


Nikpy is used to scrape a car site for which I have an account. I use the data from that site to help with a website I help to run.

Usage


Script file example

from nikpy import NikPy
from os import environ
from sys import argv

user = environ.get('NIKUSR') # define this user in terminal
pwd = environ.get('NIKPWD')

script, code = argv

NikPy(username=user, password=pwd)\
    .login()\
    .get_by_code(code)\
    .end()

In the example above "get_by_code" downloads the pictures and additional information for the image being scraped.

Motivation


Frees up some of my time by making something tedious more seamless.

About

Simple scraper to pull data from a website.


Languages

Language:Python 100.0%