{"id":21125333,"url":"https://github.com/ripjar/icon-scraper","last_synced_at":"2025-03-14T11:40:25.706Z","repository":{"id":184077739,"uuid":"671264050","full_name":"ripjar/icon-scraper","owner":"ripjar","description":"Python script using selenium to scrape a webpage for glyphs.","archived":false,"fork":false,"pushed_at":"2023-07-27T13:17:23.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-21T05:28:11.153Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ripjar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-07-26T23:41:35.000Z","updated_at":"2023-07-27T00:06:09.000Z","dependencies_parsed_at":"2024-11-20T06:16:54.938Z","dependency_job_id":null,"html_url":"https://github.com/ripjar/icon-scraper","commit_stats":null,"previous_names":["ripjar/icon-scraper"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ripjar%2Ficon-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ripjar%2Ficon-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ripjar%2Ficon-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ripjar%2Ficon-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ripjar","download_url":"https://codeload.github.com/ripjar/icon-scraper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243573162,"owners_count":20312879,"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","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":[],"created_at":"2024-11-20T04:24:04.920Z","updated_at":"2025-03-14T11:40:25.684Z","avatar_url":"https://github.com/ripjar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# icon-scraper\nPython script using selenium to scrape a webpage for glyphs. This particular example connects to the font-awesome website's icon library and simulates the action of clicking and copy-pasting icons into a file.  \nYou will have to leave the script running and not do anything else until it's completed otherwise it will interrupt the automated clicking actions. Not ideal, but still better than having to do all the copy-pasting manually!  \n\nYou can use this script as a guide or template for connecting to a website of your choosing and scraping icons from there. It's likely you'll have to modify the code to work with the HTML structure of the webpage you are automating actions on, but the example script may be good as a starting point.\n\n## Requirements\nYou will need Python 3 to run the script. I specifically used 3.10.8, but any minor version should do.\n  \nAt the moment, this only works with Chrome. Install the appropriate ChromeDriver for your operating system [here](https://chromedriver.chromium.org/downloads)\n\nAlso, you will need the following python packages:\n* selenium 4.10\n* webdriver-manager 3.9.1\n* pyperclip 1.8.2\n\nOnce you have these dependencies installed you should be able to run the example:\n```\n    python font-awesome-scraper.py\n```\nThe script will write the glyphs to a file in JSON format, along with an icon \"id\" and \"label\".\nThis can be pasted into the icons array of the font configuration block of a Labyrinth Investigations schema.  \n  \nThe file example_fontawesome_output.txt shows what the output file contents looks like.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fripjar%2Ficon-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fripjar%2Ficon-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fripjar%2Ficon-scraper/lists"}