fykillo.blogg.se

Facebook email extractor 2016
Facebook email extractor 2016











Let’s begin by importing the modules at the top of the script. The next step was write down some pseudocode to map out what needed to be achieved and then to get coding… (3) re – the regular expression module to find the text needed to rename the file.

#Facebook email extractor 2016 pdf

(2) PyPDF2 – to read/write PDF files and also to extract text from pages (1) os – for traversing through the directories and files and for renaming the files …A quick research via Google on some Python modules and I had what I needed to complete my task in a more automated and time efficient manner.

facebook email extractor 2016

There had to be a more interesting and time efficient way…

facebook email extractor 2016

Since I was not the creator of any of these PDFs and they all came from different teams, hunting down the correct MXDs and exporting would be cumbersome and also very time consuming. The PDFs contained map books produced using data driven pages in ArcGIS, it was conceivable that I could also re-open the original MXDs and re-export the map book as individual pages and naming appropriately based on the document name in the attribute table. At the extreme I could have been looking at around one-thousand pages to extract and rename – a task that would have been very time consuming and mind numbing to do manually.

facebook email extractor 2016

There was possibly over 100 PDF files in the directory and each PDF could have one to more than ten pages. The end goal was to name each extracted page, that was now an individual PDF, with a document number present on each page. I was recently tasked with traversing through a directory and subsequent sub-directories to find PDFs and split any multi-page files into single-page files.











Facebook email extractor 2016