20 Commits

Author SHA1 Message Date
Doc
b2c1723313 updated readme 2025-10-03 19:38:12 +02:00
Doc
acaccb8cdd refactor: Improve 4chan downloader with better error handling and resource management
- Replace log.Fatal() with proper error returns for better control flow
- Add type safety with dedicated structs instead of interface{} maps
- Implement proper HTTP client with timeout configuration
- Fix goroutine closure variable capture issues
- Add input validation for URL format and board extraction
- Ensure destination directory exists before writing files
- Improve error messages with context and proper error wrapping
- Add resource cleanup with defer statements for HTTP responses
- Separate concerns into dedicated functions for better organization
- Use filepath.Join for cross-platform path handling
- Add comprehensive logging throughout the application

This refactoring makes the downloader more robust, maintainable, and production-ready while preserving all original functionality.
2025-10-03 19:33:16 +02:00
Doc
07224f9258 Fixed formating v1.0.0 2024-03-20 10:14:46 +01:00
Doc
ab2133a193 Corrected install instructions 2024-03-20 10:13:56 +01:00
Doc
c2414cf366 Spelling mistake 2024-03-20 10:12:04 +01:00
Doc
4dd5f5ad77 Merge branch 'master' of https://git.protron.dev/Doc/Scrapychan 2024-03-20 10:09:50 +01:00
Doc
dcbd82ec6a Corrected install und build instructions 2024-03-20 10:08:27 +01:00
Doc
59ef434f5b Merge pull request 'add-async-functionality' (#1) from add-async-functionality into master
Reviewed-on: #1
2024-03-20 10:01:37 +01:00
Doc
3bf0dd812f Changed concurrency to use a waitgroup 2024-03-20 09:51:29 +01:00
Doc
6b415b0ef1 Post request and writing data to disk is now async 2024-03-19 13:50:34 +01:00
Doc
44ca443a7c Fix build script 2024-03-19 13:08:31 +01:00
Doc
806840d947 Check if url flag is valid 2024-03-19 12:55:02 +01:00
Doc
f53cb8367e Corrected install url 2024-03-13 07:51:52 +01:00
Doc
fa7be94721 Fixed Read me 2024-03-12 12:51:23 +01:00
Doc
c6f01acfd4 + gitignore 2024-03-12 12:31:55 +01:00
Doc
b411704214 + buildscript 2024-03-12 10:27:44 +01:00
Doc
8d24733795 Fix Read me 2024-03-12 09:17:11 +01:00
Doc
5b60a3fe69 + Read me spelling correction and added install information 2024-03-12 09:13:30 +01:00
Doc
1060bfd81a + Read me file 2024-03-12 09:06:38 +01:00
Doc
9c6778a8c9 Init 2024-03-12 08:56:20 +01:00