Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ItsAML/Hiddify-To-Marzban
Simply Migrate Your Users Using API From Hiddify to Marzban Panel
https://github.com/ItsAML/Hiddify-To-Marzban
Last synced: 9 days ago
JSON representation
Simply Migrate Your Users Using API From Hiddify to Marzban Panel
- Host: GitHub
- URL: https://github.com/ItsAML/Hiddify-To-Marzban
- Owner: ItsAML
- Created: 2023-11-03T01:32:28.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-04T21:33:53.000Z (about 1 year ago)
- Last Synced: 2023-11-05T11:37:22.813Z (about 1 year ago)
- Language: Python
- Size: 55.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-freedom - Hiddify To Marzban
- awesome-freedom - Hiddify To Marzban
README
# Hiddify To Marzban Migrate Script
| Simply Transfer Your Users From Hiddify to Marzban
## Table of Contents
- [About](#about)
- [Prerequisites](#prerequisites)
- [Linux](#Linux)
- [Windows](#windows)Before running the script, ensure you update the following variables with your specific information in config.py:
```python
# Define Variables for Both Panels# Hiddify Panel
# Example https:////H_AUTH = "YOUR_ADDRESS" + "/api/v1/user/"
# Marzban Panel
M_DOMAIN = "YOUR_DOMAIN"
M_PORT = "YOUR_PORT"
M_USERNAME = "YOUR_USERNAME"
M_PASSWORD = "YOUR_PASSWORD"
M_HTTPS = False # Set to True to use HTTPS, False to use HTTP
```## About
This script is designed to simplify the transfer of user data from Hiddify to Marzban using the Marzban API. It securely logs into both panels, retrieves user data from Hiddify, and adds it to Marzban.
### Prerequisites
Python 3.0+ with the requests library is required. The script is not compatible with Python 2.0.
### Linux
```bash
# Clone the Repository
git clone https://github.com/ItsAML/Hiddify-to-Marzban.git
``````bash
# Change Directory
cd Hiddify-to-Marzban
``````bash
# Install pip (if not already installed)
wget -qO- https://bootstrap.pypa.io/get-pip.py | python3 -
``````bash
# Install Dependencies
python3 -m pip install -r requirements.txt
``````bash
# Make Sure You Set Your Variables Inside Config.py
# Run the Script
python3 main.py
```
### Windows
```bash
# Clone the Repository
git clone https://github.com/ItsAML/Hiddify-to-Marzban.git
```
```bash
# Navigate to the Repository Directory
cd Hiddify-to-Marzban
```
```bash
# Install Python (if not already installed)
# Download and install Python from https://www.python.org/downloads/
# Ensure you add Python to your system's PATH during installation
# Install Dependencies
pip install -r requirements.txt
``````bash
# Make Sure You Set Your Variables Inside Config.py
# Run the Script
python main.py
```
# Support This ProjectIf you find my GitHub repository helpful and would like to support my work, you can make a donation using the following cryptocurrencies:
- **USDT (TRC20):** TPXehJNLDqhHBAfs6v5KKHKXX4fZ3uhVGK
- **TRX (TRC20):** TPXehJNLDqhHBAfs6v5KKHKXX4fZ3uhVGKYour contributions are greatly appreciated and will help me continue developing and maintaining this project. Thank you for your support! 🙌