{"id":24360433,"url":"https://github.com/dms-codes/rigpix","last_synced_at":"2026-05-20T23:02:43.985Z","repository":{"id":169618399,"uuid":"372822375","full_name":"dms-codes/rigpix","owner":"dms-codes","description":"Web Scraping with BeautifulSoup This Python script demonstrates how to perform web scraping using BeautifulSoup to extract data from a webpage. In this example, we scrape data from the RigPix website, specifically the Icom radio models and their corresponding details.","archived":false,"fork":false,"pushed_at":"2023-10-01T09:44:53.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T21:20:06.601Z","etag":null,"topics":["python","rigpix","scrape"],"latest_commit_sha":null,"homepage":"https://github.com/dms-codes/rigpix","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/dms-codes.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}},"created_at":"2021-06-01T12:29:28.000Z","updated_at":"2023-10-01T09:47:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"eb3771f5-9adb-4099-a8d4-560063bc2688","html_url":"https://github.com/dms-codes/rigpix","commit_stats":null,"previous_names":["dms-codes/rigpix"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Frigpix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Frigpix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Frigpix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Frigpix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dms-codes","download_url":"https://codeload.github.com/dms-codes/rigpix/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243182899,"owners_count":20249709,"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":["python","rigpix","scrape"],"created_at":"2025-01-18T21:19:52.887Z","updated_at":"2025-12-26T00:27:19.251Z","avatar_url":"https://github.com/dms-codes.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web Scraping with BeautifulSoup\n\nThis Python script demonstrates how to perform web scraping using BeautifulSoup to extract data from a webpage. In this example, we scrape data from the [RigPix](http://www.rigpix.com/icom/icomselect.htm) website, specifically the Icom radio models and their corresponding details.\n\n## Prerequisites\n\nBefore running the script, ensure you have the required libraries installed. You can install them using `pip`:\n\n```bash\npip install pandas requests beautifulsoup4\n```\n\n## Usage\n\n1. Import the necessary libraries:\n\n   ```python\n   import pandas as pd\n   import requests\n   from bs4 import BeautifulSoup\n   ```\n\n2. Specify the URL of the webpage you want to scrape:\n\n   ```python\n   url = \"http://www.rigpix.com/icom/icomselect.htm\"\n   ```\n\n3. Send an HTTP GET request to the URL and parse the HTML content using BeautifulSoup:\n\n   ```python\n   r = requests.get(url)\n   soup = BeautifulSoup(r.text, 'html.parser')\n   ```\n\n4. Identify the HTML elements that contain the data you want to extract. In this script, we find all `h3` headers:\n\n   ```python\n   headers = soup.find_all('h3')\n   ```\n\n5. Extract the headers into a list:\n\n   ```python\n   headers_list = []\n   for h in headers:\n       headers_list.append(h.text)\n   ```\n\n6. Create a dictionary to store the scraped data:\n\n   ```python\n   data = {}\n   ```\n\n7. Use Pandas to parse the HTML tables on the webpage and store them in a list:\n\n   ```python\n   df_list = pd.read_html(r.content)\n   ```\n\n8. Populate the `data` dictionary with the scraped data, using the headers as keys:\n\n   ```python\n   for i, l in enumerate(df_list[3:]):\n       data[headers_list[i]] = l\n   ```\n\n9. Print or further process the extracted data. In this script, we print the `data` dictionary:\n\n   ```python\n   print(data)\n   ```\n\n## Example\n\nThe script retrieves information about Icom radio models and stores it in a dictionary, making it easy to work with the data programmatically.\n\n## License\n\nThis script is provided under the [MIT License](LICENSE).\n```\n\nFeel free to customize the README.md file further to include additional information or usage examples for your specific project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdms-codes%2Frigpix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdms-codes%2Frigpix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdms-codes%2Frigpix/lists"}