/Nikpy

Simple scraper to pull data from a website.

Primary LanguagePython

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.