Skip to content

Instantly share code, notes, and snippets.

@flips22
flips22 / _cbltomylar.py
Last active January 6, 2023 03:55
CBL to Mylar Script - Imports a CBL file, finds each unique series on comicvine, checks if you already have it in mylar and if not, adds the series to mylar via its api.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
Installation:
1) Add this package as a python wrapper to search the comicvine api:
https://github.com/jessebraham/comicvine-search
I wasn't able to get this module to install so I copied it to the same folder as the .py file (or add to you env of course)
2) Replace [mylar api key] with your api key
3) Replace [mylar server address] with your server in the format: http://servername:port/ (make sure to include the slash at the end)
4) Replace [comicvine api key] with your api key
@flips22
flips22 / leaguetomylar.py
Created January 6, 2023 03:59
This script imports your leagueofcomicgeeks wishlist, searches comicvine and adds the series to mylar
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
This script will search you wishlist at league of comic geeks, and then add each series to mylar. If you add one issue for a series, it will
just add the series (and search for missing issues if you have that setting selected in mylar)
The URL for your wishlist is: https://leagueofcomicgeeks.com/profile/[username]/wish-list
I think it is possible to change to use your collection instead, by changing the wishlistURL, but I haven't testing that much. Ideally, it would pull your
pull list, but the page layout for that is more complicated as each week is a page. If you upgrade to pro for $2 a month, your pull list will auto add to either wishlist or
your collection, but I haven't tested that either.