a package to programmatically get a variety of data from Rural Development and Panchayat Raj Department, Government of Karnataka.
This package is currently in beta. Feedback, suggestions, and contributions are welcome-- feel free to open an issue or submit a pull request.
library(devtools)
devtools::install_github("azadecon/rdpR")
A small piece of information is exchanged between your browser (broadly the computer) and the website so that they can remember that it is you
who wants to connect. For this jessionID
, a cookie is required.
- Go to the Panchatantra website.
- Press
ctrl + shift + I
or go to theDeveloper tools
in your browser. - Press
ctrl + R
or reload the page. - Go to the
Network
tab. It is betweenElements
andConsole
tab. - Now click on
Fetch XHR
. A small panel will open. - Click on any of the entry in the list. It might start with
getPanchatantraMaster...
. - You will see tabs such as
Headers
,Payload
, ... - Access
Cookies
viamore tab
(the>>
sign). - Copy the 32-character long string under the
value
tab. - Create an object
jessionID
with this value in your R code.
Well, currently this is just a wrapper to get data from Bapuji Sewa Kendra (BSK) and Panchatantra. Several things are planned.
You can supply a property_ID
and get the history of all the payments made, right in R
.
library(rdpr)
rdpr::get_property_tax_history("property_ID")
jessionID <- `a_32_character_long_string`
## example
## property_ID <- 150300700700400133
## property_ID <- 150300700700400095
This returns a dataframe containing the history of n
payments in 5 columns and n
rows. The columns are receipt_number
, payment_type
, payment_amount
, unique_id
, and payment_date
.
unique_id
is same as "property_ID"
You can supply a property_ID
and get the total collection
, total demand
, and total balance
for the panchayat this property belongs to.
But if you know the gp_ID
(gram panchayat ID), this function gets the total collection
, total demand
, and total balance
.
get_panchayat_properties()
: this retrieves all the properties in a given panchayatgp_ID
and their variables such astotal_demand
,total_collection
,arrears
and so on. Additionally,year
option can be changed to retrieve it for different years.get_panchayat_property_tax_history
: this gets the history of tax payment for all the properties in a panchayat. A property can have multiple payment in a given year which is not captured inget_panchayat_properties()
.get_all_panchayats
: This produces a table with all thepanchayats
in Karnataka, along within their respectivetaluka
anddistricts
. Plan includes to bring LGD codes as well.