The Reading List Parser is a Python script that extracts bookmarked URLs, status codes, titles, and preview texts from a Safari Bookmarks plist file, specifically targeting the Reading List section.
- Python 3.x
requests
libraryplistlib
library
-
Clone the repository or download the script file (
extract-readinglist.py
) to your local machine. -
Install the required libraries by running the following command:
pip install requests plistlib
-
Locate the Safari Bookmarks plist file (
Bookmarks.plist
) on your macOS device. It is typically located in the following directory:~/Library/Safari/Bookmarks.plist
-
Copy the
Bookmarks.plist
file to the same directory as the script (extract-readinglist.py
). -
Run the script by executing the following command:
python3 extract-readinglist.py
-
The script will process the bookmarks and generate a CSV file named
readinglist.csv
in the same directory. -
Open the
readinglist.csv
file to view the extracted data, including the URL, status code, title, and preview text of each bookmark in the Reading List.
- The script assumes that the
Bookmarks.plist
file is in the correct format and follows the expected structure. - In case of errors or issues during processing, the script will log an error message for the corresponding bookmark in the CSV file.
- Adjust the script or modify the output format as needed to match your requirements.
This project is licensed under the MIT License