Skip to content

Instantly share code, notes, and snippets.

@fgregg
Last active April 16, 2020 21:16
Show Gist options
  • Save fgregg/3f35cb94931e8ff81ba66f6ae51515e7 to your computer and use it in GitHub Desktop.
Save fgregg/3f35cb94931e8ff81ba66f6ae51515e7 to your computer and use it in GitHub Desktop.
notes on inmate locator

should be able to scrape changing bookingNumber in the data payload.

For Justin Walker:

curl 'https://inmatelocator.ccsheriff.org/InmateLocator/Details'
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:75.0) Gecko/20100101 Firefox/75.0'
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'
-H 'Accept-Language: en-US,en;q=0.5'
--compressed
-H 'Content-Type: application/x-www-form-urlencoded'
-H 'Origin: https://inmatelocator.ccsheriff.org'
-H 'Connection: keep-alive'
-H 'Referer: https://inmatelocator.ccsheriff.org/InmateLocator/SearchInmates'
-H 'Cookie: BIGipServerInmateLocator.app~InmateLocator_pool=2733734410.47873.0000; f=Ul7HZRQM7QnmISJ0OzR0z66Xz7dcnZPL5J7HGfdMDh9VSalNERjrh7j8-Z3TU-AkeHPXRoPXK_PUf4JbOpTY2J0toeHm_pEyMUA6OwYTWvg1'
-H 'Upgrade-Insecure-Requests: 1'
--data 'bookingNumber=20200331068&__RequestVerificationToken=VllEWtpSdqZd2r95mFGTsEdkneB8dvG4W2Cvp2jiLxCQZBmSdK8vFKvdnEIIuxC01awRi6b5CHu9E8JFMeZGPzZ-YT2qOZc2aP8P-dV7nps1'

for Michael Scott

curl 'https://inmatelocator.ccsheriff.org/InmateLocator/Details'
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:75.0) Gecko/20100101 Firefox/75.0'
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'
-H 'Accept-Language: en-US,en;q=0.5'
--compressed
-H 'Content-Type: application/x-www-form-urlencoded'
-H 'Origin: https://inmatelocator.ccsheriff.org'
-H 'Connection: keep-alive'
-H 'Referer: https://inmatelocator.ccsheriff.org/InmateLocator/SearchInmates'
-H 'Cookie: BIGipServerInmateLocator.app~InmateLocator_pool=2733734410.47873.0000; f=Ul7HZRQM7QnmISJ0OzR0z66Xz7dcnZPL5J7HGfdMDh9VSalNERjrh7j8-Z3TU-AkeHPXRoPXK_PUf4JbOpTY2J0toeHm_pEyMUA6OwYTWvg1'
-H 'Upgrade-Insecure-Requests: 1'
--data 'bookingNumber=20191031024&__RequestVerificationToken=VllEWtpSdqZd2r95mFGTsEdkneB8dvG4W2Cvp2jiLxCQZBmSdK8vFKvdnEIIuxC01awRi6b5CHu9E8JFMeZGPzZ-YT2qOZc2aP8P-dV7nps1'

booking numbers have the format

year month day serial

when an inmate is released, their page will no longer be available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment