{"id":26293564,"url":"https://github.com/xixu-me/library-data-assistant","last_synced_at":"2025-10-08T03:07:24.419Z","repository":{"id":254595926,"uuid":"821900307","full_name":"xixu-me/Library-Data-Assistant","owner":"xixu-me","description":"Java-based client-server application for managing library book data with web crawling capabilities","archived":false,"fork":false,"pushed_at":"2025-01-12T07:57:11.000Z","size":3723,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-21T18:08:25.684Z","etag":null,"topics":["crawler","crawling","database","java","mysql"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xixu-me.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-06-29T19:00:42.000Z","updated_at":"2025-06-11T12:29:30.000Z","dependencies_parsed_at":"2025-01-12T08:27:11.797Z","dependency_job_id":"3f75f1e5-d27d-470d-842f-5d77620024fe","html_url":"https://github.com/xixu-me/Library-Data-Assistant","commit_stats":null,"previous_names":["xixu-me/library-data-assistant"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xixu-me/Library-Data-Assistant","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xixu-me%2FLibrary-Data-Assistant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xixu-me%2FLibrary-Data-Assistant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xixu-me%2FLibrary-Data-Assistant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xixu-me%2FLibrary-Data-Assistant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xixu-me","download_url":"https://codeload.github.com/xixu-me/Library-Data-Assistant/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xixu-me%2FLibrary-Data-Assistant/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274095108,"owners_count":25221431,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crawler","crawling","database","java","mysql"],"created_at":"2025-03-15T02:19:46.235Z","updated_at":"2025-10-08T03:07:19.389Z","avatar_url":"https://github.com/xixu-me.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Library Data Assistant\n\nA Java-based client-server application for managing library book data with web crawling capabilities.\n\n## Features\n\n- User authentication system\n- Book data management:\n  - Display library data\n  - Web crawling of book information from Dangdang.com\n  - Query books by title, author, publisher, or price\n  - Delete book records\n  - Update book information\n  - Export data to CSV or XLS formats\n- Multi-threaded web crawler\n- Client-server architecture using Socket communication\n- JSON-based data exchange\n- MySQL database integration\n\n## Technical Stack\n\n- Java\n- MySQL\n- Socket Programming\n- GSON for JSON handling\n- JSoup for web crawling\n- JXL for Excel file handling\n\n## Project Structure\n\n```plaintext\nsrc/\n├── client/\n│   └── Client.java           # Client-side application\n├── server/\n│   ├── Server.java           # Server application\n│   ├── dao/\n│   │   └── UserDAO.java      # Data Access Object for users\n│   ├── thread/\n│   │   └── HandleThread.java # Server thread handler\n│   ├── tools/\n│   │   ├── crawling/         # Web crawling components\n│   │   ├── DBConnection.java # Database connection utility\n│   │   ├── Encoding.java     # Encoding utilities\n│   │   ├── ExportToCSV.java  # CSV export functionality\n│   │   └── ExportToXLS.java  # Excel export functionality\n│   └── vo/\n│       └── User.java         # User value object\n\n```\n\n## Setup\n\n1. Install MySQL and create a database named `lda`\n2. Configure database connection in `src/server/tools/DBConnection.java`:\n\n   ```java\n   private final static String url = \"jdbc:mysql://localhost:3306/lda?allowPublicKeyRetrieval=true\u0026useSSL=false\";\n   private final static String user = \"root\";\n   private final static String password = \"your_password\";\n   ```\n\n3. Compile the project\n4. Start the server: `java server.Server`\n5. Start the client: `java client.Client`\n\n## Usage\n\n1. Login with your credentials\n2. Use the menu to:\n   - View library data\n   - Crawl new book data\n   - Query specific books\n   - Delete books\n   - Modify book information\n   - Export data to CSV/XLS\n\n## License\n\nCopyright \u0026copy; [Xi Xu](https://xi-xu.me). All rights reserved.\n\nLicensed under the [GPL-3.0](LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxixu-me%2Flibrary-data-assistant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxixu-me%2Flibrary-data-assistant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxixu-me%2Flibrary-data-assistant/lists"}