7fenglou
This project is designed to extract data from the 7fenglou API and save it to an Excel file.
Description
The 7fenglou
project fetches data from the 7fenglou API and saves it to an Excel file. It retrieves information such as thread IDs, post IDs, user IDs, and category IDs from the API response.
The project uses the Go programming language and relies on the following external libraries:
github.com/xuri/excelize/v2
for creating and manipulating Excel files.
Getting Started
Prerequisites
Installation
-
Clone the repository:
git clone https://github.com/InfoProspectors/7fenglou.git
-
Navigate to the project directory:
cd 7fenglou
-
Install dependencies:
go mod download
Usage
-
Open the main.go file in a text editor.
-
Locate the BaseURL constant and update it with the base URL of the 7fenglou API.
-
Run the project:
go run main.go
-
The data will be fetched from the API, saved to a JSON file (data.json), and then extracted and saved to an Excel file (7fenglou.xlsx).
Configuration
The following parameters can be modified in the main.go
file:
Contributing
Contributions are welcome! If you find any issues or want to enhance the project, please feel free to submit a pull request.
License
This project is licensed under the Apache License License.