{"id":15910751,"url":"https://github.com/gianlucatruda/recommendation_extractor","last_synced_at":"2025-07-26T08:37:28.295Z","repository":{"id":67059295,"uuid":"167950197","full_name":"gianlucatruda/recommendation_extractor","owner":"gianlucatruda","description":"A pair of scripts for (1) extracting URLs from HTML-esque documents and (2) fetching the title, description, and permalink for each URL.","archived":false,"fork":false,"pushed_at":"2019-09-09T12:52:18.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T01:26:12.519Z","etag":null,"topics":["evernote","http","ifttt","python","requests","url"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gianlucatruda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-28T11:21:14.000Z","updated_at":"2021-01-11T08:07:18.000Z","dependencies_parsed_at":"2023-02-22T13:45:56.025Z","dependency_job_id":null,"html_url":"https://github.com/gianlucatruda/recommendation_extractor","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"7003426cac60e47f454899cfef3742939a5084b5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gianlucatruda/recommendation_extractor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gianlucatruda%2Frecommendation_extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gianlucatruda%2Frecommendation_extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gianlucatruda%2Frecommendation_extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gianlucatruda%2Frecommendation_extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gianlucatruda","download_url":"https://codeload.github.com/gianlucatruda/recommendation_extractor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gianlucatruda%2Frecommendation_extractor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267141071,"owners_count":24041978,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["evernote","http","ifttt","python","requests","url"],"created_at":"2024-10-06T15:21:15.725Z","updated_at":"2025-07-26T08:37:28.266Z","avatar_url":"https://github.com/gianlucatruda.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Recommendations Extractor\n\nThis solves a little problem of my own. If you have the same (or a very similar) problem, this may help you somewhat.\n\n## My Little Problem\n\nI use [IFTTT](https://ifttt.com) to send the URLs of media (podcasts, videos, articles, etc.) to an Evernote doc. Sifting through these ifttt-customised links is a mission, so I wanted a way to extract the original URL, the title, and a description from each URL. \n\nI can export the Evernote file in HTML format. From there, this Python 3 code makes use of regular expressions, basic string/file processing, and the awesome [requests](https://github.com/requests/requests) library to extract the URLs and retrieve their information — writing the output to a .txt file of the user's choice.\n\n## Example\n\nInput\n\n```html\n\u003cdiv\u003evia Pocket \u003ca href=\"http://ift.tt/12iIegy\"\u003ehttp://ift.tt/12iIegy\u003c/a\u003e\u003c/div\u003e\n\n```\n\nIntermediary\n\n```\nhttp://ift.tt/12iIegy\n```\n\nOutput\n\n```\nBill Gates’ five favorite books of 2014\nFor the business-minded bookworm in your life.\nhttps://qz.com/308144/bill-gates-five-favorite-books-of-2014/\n[http://ift.tt/12iIegy]\n\n```\n\n## Usage\n\n```python\npython3 extract.py \u003cexported_recommendations_html\u003e urls.txt\npython3 fetch.py urls.txt \u003cformatted_output_txt\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgianlucatruda%2Frecommendation_extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgianlucatruda%2Frecommendation_extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgianlucatruda%2Frecommendation_extractor/lists"}