π οΈ Python π script automates the extraction of product pricing details from the AmerisourceBergen π website https://abcorder.amerisourcebergen.com By inputting your username
, password
, and National Drug Code (NDC) codes
and the π script navigates the website and retrieves the π° Average Wholesale Price (AWP) and Acquisition Cost (Accq Cost) π data.
DRUG NAME | NDC (00000-0000-00) |
---|---|
ACTEMRA 200 MG/10 ML VIAL | 50242013601 |
ZOLEDRONIC 5MG BAG 1X100ML | 25021083082 |
XOLAIR 150MG/ML PFS 1ML | 50242021501 |
TYSABRI DS 300 MG VL 15 ML DS | 64406000801 |
DRUG NAME | NDC (00000-0000-00) | Average Wholesale Price | Accq Cost |
---|---|---|---|
ACTEMRA 200 MG/10 ML VIAL | 50242013601 | $1,593.49 | $641.43 |
ZOLEDRONIC 5MG BAG 1X100ML | 25021083082 | $420.00 | $14.14 |
XOLAIR 150MG/ML PFS 1ML | 50242021501 | $1,567.88 | $861.55 |
TYSABRI DS 300 MG VL 15 ML DS | 64406000801 | $9,851.22 | $1,140.44 |
Make sure you have the following packages installed:
- Python 3.9.7
- selenium==4.1.3
- openpyxl==3.1.2
- webdriver-manager==4.0.0
You can install these packages using pip
:
pip install selenium==4.1.3 openpyxl==3.1.2 webdriver-manager==4.0.0
Before running the AmerisourceBergen Price Scraper, ensure that you have Python installed on your system. To check the Python version, open a terminal (or command prompt) and enter the following command:
python --version
If Python is not installed, you can download it from the official Python website: Python Downloads
Make sure to add Python to your system's PATH variable during the installation. Here's a helpful image to guide you:
- Clone the repository to your local machine:
git clone https://github.com/kawsarlog/AmerisourceBergen.git
- Change to the project directory:
cd AmerisourceBergen
- Install the required packages as mentioned in the Requirements section.
-
Edit the script to update your login credentials, input and output file names, URLs, and any other required configuration.
-
Run the script using the following command:
python amerisourceberge.py
The script will automatically navigate the website, perform data extraction based on the input data, and append the extracted data to the output Excel sheet.
For any inquiries or suggestions, feel free to reach out to the developer:
- Website: http://kawsarlog.com/
- Email: kawsarlog@gmail.com
- LinkedIn: https://www.linkedin.com/in/kawsarlog
Note: This script should be used responsibly and in compliance with the Website's Terms of Service.