Thanks to visit codestin.com
Credit goes to github.com

Skip to content

srg-developper/emag-awb-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

eMAG AWB Generator

This Python project automates the extraction of orders with status 2 from the eMAG Marketplace API. For each order, it generates an AWB (shipping label) and uploads it to a specified SFTP server.

πŸ”§ Technologies Used

  • Python
  • requests
  • dotenv
  • paramiko
  • datetime

πŸ“ Folder Structure

  • main.py – the main script for processing and uploading AWBs
  • .env.example – sample environment variables file
  • README.md – project documentation

βš™οΈ Setup Instructions

  1. Clone this repository:
git clone https://github.com/YOUR_USERNAME/emag-awb-generator.git
cd emag-awb-generator
  1. Create a .env file based on .env.example and fill in your credentials:
EMAG_USERNAME=[email protected]
EMAG_PASSWORD=your_password
SFTP_HOST=ftp.example.com
SFTP_PORT=8573
SFTP_USERNAME=username
SFTP_PASSWORD=password
SFTP_UPLOAD_DIR=AWB_EMAG
  1. Install dependencies:
pip install requests python-dotenv paramiko
  1. Run the script:
python main.py

πŸ”’ Security

  • Do not commit your .env file to version control.
  • Make sure .gitignore contains .env

πŸ“œ License

Personal project, not for commercial use.

About

Python script to automate eMAG AWB generation and upload to SFTP

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages