Skip to content

Latest commit

 

History

History
62 lines (47 loc) · 3.21 KB

README.md

File metadata and controls

62 lines (47 loc) · 3.21 KB

OpenAI Services Availability on Interactive Map For Arab Countries

This Python script scrapes the OpenAI documentation page to extract the list of supported countries for their services (such as ChatGPT). It then exports the list of supported countries to a text file named "openai_supported_countries.txt" and categorizes the Arab countries into two lists: supported and not supported.

The script also generates an interactive map using the folium library to display the location of each Arab country and whether it is supported by OpenAI services. The map is color-coded to distinguish between supported countries (green) and not supported countries (red).

alt text

Requirements

To run this script, you need the following libraries installed:

  • Selenium
  • BeautifulSoup4
  • Geopy
  • Folium

You also need to have a compatible driver installed for your browser to use with the selenium library.

How to use

  • Or in your PC do the following:
  1. Install the required libraries.
  2. Install the appropriate driver for your browser.
  3. Run the script using a Python interpreter (i.e. VSCode).
  4. An updated text file named "openai_supported_countries.txt" will be created in the same directory as the script.
  5. An interactive map will be displayed with markers for each Arab country, colored GREEN or RED depending on whether it is supported by OpenAI services. You can zoom in and out and click on each marker to view the name of the country.

Note: The script may take a few moments to run as it loads and renders the OpenAI documentation page using the selenium library.

Files

This repository contains the following files:

  • openai_locations_map_4_arab_countries.ipynb: The Python script for scraping the OpenAI page, exporting the list of supported countries to a text file, and generating an interactive map.
  • openai_supported_countries.txt: A text file containing the list of supported countries for OpenAI services.
  • README.md: The README file explaining the script and how to use it.
  • map_8Mar2023.png: Last updated OpenAI service availability map picture. (March 8, 2023).

Credits

This README file was created with some help from ChatGPT _a large language model trained by OpenAI_ using the following resources: