https://github.com/lgdd/liferay-stackexchange-importer
Import Stack Exchange data into Liferay Message Boards
https://github.com/lgdd/liferay-stackexchange-importer
liferay liferay-dxp liferay-portal python python-script stackexchange-dump
Last synced: 2 months ago
JSON representation
Import Stack Exchange data into Liferay Message Boards
- Host: GitHub
- URL: https://github.com/lgdd/liferay-stackexchange-importer
- Owner: lgdd
- License: mit
- Created: 2024-01-15T09:34:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-08T14:56:37.000Z (over 1 year ago)
- Last Synced: 2024-02-08T15:59:59.191Z (over 1 year ago)
- Topics: liferay, liferay-dxp, liferay-portal, python, python-script, stackexchange-dump
- Language: Python
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Liferay Stack Exchange Importer
Python script that download archive data of stackexchange.com (https://archive.org/download/stackexchange) and import each post and its accepted answer as message board categories, threads & messages in Liferay.## Requirements
- Python 3.10+
- Liferay DXP/Portal u92+/ga92+## Usage
```
pip install -r requirements.txt
python main.py
```## Configuration
### Stack Exchange Data
The script will download the list of topics found in [topics.txt](topics.txt) and download the corresponding archive on https://archive.org/download/stackexchange. If you want to easily change the list, you can take any topics from the list in [all_topics](all_topics.txt).
### Liferay
The script is looking for environment variables that you can store in an `.env` file such as:
```
[email protected]
LIFERAY_USER_PASSWORD=test
LIFERAY_HOST=http://localhost:8080
```