I'm currently trying to find voting results by precinct for for Pennsylvania. I know several states such as South Carolina have published voting data from the 2016 General Election. This data can be accessed here. Does Pennsylvania, or any other state for that matter, have anything like this?
You can find County-level voting data on the election site of Townhall.
A kind person has done a scrape of the website and made the data available on Github as a CSV and Ipython notebook.
Scraping townhall.com for county-level election results from the 2016 presidential general election with Python
The above data source gives a FIPS code for each county. It's sometimes four digit, because the leading 0 is removed when it was converted to an integer, but I think you can map it to the 5 digit codes available from census.gov
AL,01,001,Autauga County,H1 AL,01,003,Baldwin County,H1 AL,01,005,Barbour County,H1 AL,01,007,Bibb County,H1 AL,01,009,Blount County,H1 AL,01,011,Bullock County,H1 AL,01,013,Butler County,H1
Here's one 1988 mapping from the CDC between Zip+4 codes and FIPS county codes.
The County Cross Reference File is a product which provides a relationship between ZIP+4 codes and Federal Information Processing Standard (FIPS) county codes. The file allows users who have assigned ZIP+4 codes to their address files to obtain county data at the ZIP+4 level.
00602000000063000010120PR003AGUADA 00602000000063101210240PR003AGUADA 00602000000063202410300PR003AGUADA 00602000000063303010420PR003AGUADA 00602000000063404210538PR003AGUADA
(the first 5 digits are the zip code, 00602 is in puerto rico for this example)
OpenElections works to acquire and bring to a standard format the precinct level vote results. They do a great job on this as I sift through the Florida results from the 2014 general election. The Pennsylvania data is available for 2014, but does not appear to have any update for the 2016 primary.
Additionally, you can go to Voter List Information to find Pennsylvania's website. The Voter List Information