Skip to content

πŸ› οΈ 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 (AC) πŸ“Š data

License

Notifications You must be signed in to change notification settings

kawsarlog/AmerisourceBergen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AmerisourceBergen Price Scraper

Python Version Selenium Version Openpyxl Version Webdriver-Manager Version

DescriptionThis

πŸ› οΈ 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.

The input data format should be as follows:

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

Input XL Format

The extracted output data will be appended in the following format:

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

Table of Contents

Requirements

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

Python Installation

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:

Add Python to PATH

Script Installation

  1. Clone the repository to your local machine:
git clone https://github.com/kawsarlog/AmerisourceBergen.git
  1. Change to the project directory:
cd AmerisourceBergen
  1. Install the required packages as mentioned in the Requirements section.

Usage

  1. Edit the script to update your login credentials, input and output file names, URLs, and any other required configuration. log in

  2. 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.

Contact

For any inquiries or suggestions, feel free to reach out to the developer:


Note: This script should be used responsibly and in compliance with the Website's Terms of Service.

About

πŸ› οΈ 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 (AC) πŸ“Š data

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages