{"id":15011194,"url":"https://github.com/marufamd/comicgeeks","last_synced_at":"2025-04-09T19:04:27.151Z","repository":{"id":57203947,"uuid":"336962966","full_name":"marufamd/comicgeeks","owner":"marufamd","description":"A NodeJS module to get data from League of Comic Geeks","archived":false,"fork":false,"pushed_at":"2024-10-14T17:03:30.000Z","size":142,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-19T14:40:01.755Z","etag":null,"topics":["comic","leagueofcomicgeeks","nodejs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/comicgeeks","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marufamd.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}},"created_at":"2021-02-08T04:47:40.000Z","updated_at":"2024-10-14T17:03:33.000Z","dependencies_parsed_at":"2024-10-17T18:38:00.850Z","dependency_job_id":"d9e49461-a4a0-4bae-93f7-333d461ff649","html_url":"https://github.com/marufamd/comicgeeks","commit_stats":null,"previous_names":["marufamd/comicgeeks","maruf99/comicgeeks"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marufamd%2Fcomicgeeks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marufamd%2Fcomicgeeks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marufamd%2Fcomicgeeks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marufamd%2Fcomicgeeks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marufamd","download_url":"https://codeload.github.com/marufamd/comicgeeks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248095016,"owners_count":21046770,"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","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":["comic","leagueofcomicgeeks","nodejs"],"created_at":"2024-09-24T19:39:39.832Z","updated_at":"2025-04-09T19:04:27.125Z","avatar_url":"https://github.com/marufamd.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# comicgeeks\n\nA NodeJS module to get data from League of Comic Geeks\n\n```bash\nnpm install comicgeeks \n```\n\n## Features\n\n- Fetching weekly release lists\n- Fetching search results\n- Fetching user pull lists\n- Fetching user collections\n- Fetching user wish lists\n- Filter by publisher, comic format, etc\n- Sort by pull count, community rating, price, alphabetically, etc\n\n## Usage\n\nView the full documentation [here](https://marufamd.github.io/comicgeeks/).\n\nEvery method to retrieve data is prefixed with `fetch`:\n\n- `fetchReleases`\n- `fetchSearchResults`\n- `fetchPulls`\n- `fetchCollection`\n- `fetchWishList`\n\nEach method returns a Promise that resolves with the data. Here are a few examples:\n\n```js\nconst { fetchReleases, FilterTypes } = require('comicgeeks');\n// ES Module or TypeScript: import { fetchReleases, FilterTypes } from 'comicgeeks';\n\n// Fetch regular, digital, and annual DC Comics issues that released on 2020-12-15, and sort them alphabetically\nfetchReleases('2020-12-15', {\n    publishers: ['DC Comics'],\n    filter: [\n        FilterTypes.Regular,\n        FilterTypes.Digital,\n        FilterTypes.Annual\n    ],\n    sort: SortTypes.AlphaAsc\n})\n    // Resolves to an array of objects\n    .then(console.log)\n    .catch(console.error);\n```\n\nThe return objects will look something like this:\n\n```js\n{\n    name: 'Batman #105',\n    publisher: 'DC Comics',\n    url: 'https://leagueofcomicgeeks.com/comic/9430629/batman-105',\n    cover: 'https://s3.amazonaws.com/comicgeeks/comics/covers/large-9430629.jpg?1612100060',\n    description: 'GHOST STORIES, PART 4 Batman battles Ghost-Maker in the no-holds-barred, bloody conclusion of this epic tale…winner take Gotham City! And the outcome is not what you’re expecting! The future of Gotham City and the fate of...',\n    price: '$3.99',\n    rating: 84,\n    pulls: 9288,\n    potw: 2\n}\n```\n\nLet's try search results.\n\n```js\nconst { fetchSearchResults, CollectionTypes } = require('comicgeeks');\n\n// Search for 'batman' in issue format\nfetchSearchResults('batman', CollectionTypes.Issue)\n    // Will resolve to an array of objects, similar to the one above\n    .then(console.log)\n    .catch(console.error);\n```\n\nWhen fetching user specific data, things become a bit more complicated. Each method will take the user's ID as the first parameter. There is a helper method, `fetchUser` to retrieve the ID from a username.\n\n```js\nconst { fetchUser } = require('comicgeeks');\n\nfetchUser('maruf99')\n    .then(console.log)\n    .catch(console.error);\n\n/*\n{\n    id: 122444,\n    name: 'maruf99',\n    url: 'https://leagueofcomicgeeks.com/profile/maruf99',\n    avatar: 'https://s3.amazonaws.com/comicgeeks/avatars/large-122444.jpg?t=1609863575'\n}\n */\n```\n\nLet's try fetching a pull list, collection, and wish list.\n\n```js\nconst {\n    CollectionTypes,\n    fetchCollection,\n    fetchPulls,\n    fetchUser,\n    fetchWishList,\n    SortTypes\n} = require('comicgeeks');\n\nfetchUser('maruf99')\n     // async/await syntax\n    .then(async user =\u003e {\n        // Fetch the collection\n        const collection = await fetchCollection(user.id, CollectionTypes.Series, {\n            sort: SortTypes.AlphaAsc\n        });\n\n        // Fetch the pull list and order by most pulled\n        const pullList = await fetchPulls(user.id, '2021-01-05', {\n            sort: SortTypes.MostPulled\n        });\n\n        // Fetch the wish list and order by price \n        const wishList = await fetchWishList(user.id, CollectionTypes.Series, {\n            sort: SortTypes.HighPrice\n        });\n\n        // Do stuff with the data\n    })\n    .catch(console.error);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarufamd%2Fcomicgeeks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarufamd%2Fcomicgeeks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarufamd%2Fcomicgeeks/lists"}