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 JSESSIONID, a cookie is required.
- Go to the Panchatantra website.
- Press
ctrl + shift + Ior go to theDeveloper toolsin your browser. - Press
ctrl + Ror reload the page. - Go to the
Networktab. It is betweenElementsandConsoletab. - 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
Cookiesviamore tab(the>>sign). - Copy the 32-character long string under the
valuetab. - Create an object
JSESSIONIDwith 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")
JSESSIONID <- `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 directly gets the total collection, total demand, and total balance.
get_panchayat_properties(): this retrieves all the properties in a given panchayatgp_IDand their variables such astotal_demand,total_collection,arrearsand so on. Additionally,yearoption 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 thepanchayatsin Karnataka, along within their respectivetalukaanddistricts. Plan includes to bring LGD codes as well.