Parse your humble choice / monthly data and compile a CSV list for better overview

Overview

humbleparser

Parse your humble choice / monthly data and compile a CSV list for better overview

Requirements

  • PHP CLI (>= 7.4))
  • php-curl

Note

I have never suspended my subscription since I have subscribed to Humble Monthly / Choice.
I'm therefore unsure how this script will behave, if it encounters a month where you had no subscription. It should not break, though.

Usage

  1. First you need to fetch your session cookie from Humble:
    Login to Humble, open your Developer Console and fetch the Cookie string from the request header. It looks something like this:
    csrf_cookie=XXXX[...]

  2. Open HumbleParser.php, scroll to the bottom and insert the cookie string:
    $test->setCookie('csrf_cookie=Uu2p....');

  3. (optional) Enter a path where the cache should be created:
    $test->setCacheDir('/home/user/Desktop/humblecache/');
    You only need this, when using a cache (see #5), which is strongly recommended

  4. Enter a path where the compiled CSV file should be placed:
    $test->setOutputDir('/home/user/Desktop/');

  5. (optional) Enable caching of downloaded data:
    $test->setUseCache(true);
    This is optional, but strongly recommended

  6. Configure the year and month when your subscription has started:
    $test->setYearStart(2018);
    $test->setMonthStart(7);

  7. Save the file and switch to a terminal and run the script:
    php HumbleParser.php

  8. Pray that it works, watch it doing stuff and enjoy your CSV file!

Final notes

As always when you parse data from foreign sources, be nice!
There is a sleep() command after each call to Humble and please leave it that way.
Thank you!

You might also like...
📦 "PHP type names" contains the list of constants for the available PHP data types.

PHP type names PHP type names 📄 Description Simple library containing the list of constants for the available PHP data types. Use those constant type

Magento 2 Module for parsing xlsx, xlsm and csv files from Excel

Magento 2 Spreadsheet Parser Facts Parse XLSX, XLSM and CSV Files from Excel Requirements PHP = 7.0.* Magento = 2.1.* Compatibility Magento = 2.1 U

World countries - available in multiple languages, in CSV, JSON, PHP, SQL and XML formats

Constantly updated lists of world countries and their associated alpha-2, alpha-3 and numeric country codes as defined by the ISO 3166 standard, available in CSV, JSON , PHP, SQL and XML formats, in multiple languages and with national flags included; also available are the ISO 3166-2 codes of provinces/ states associated with the countries

Better error reporting for PHP, and prettier too!
Better error reporting for PHP, and prettier too!

PHP Error | Improve Error Reporting for PHP THIS IS NO LOBGER MAINTAINED, Please leave me alone. PHP errors are not good enough for development, it's

A MCPE server software that backporting new Minecraft: Bedrock Edition to older PocketMine versions with better stability and performance.
A MCPE server software that backporting new Minecraft: Bedrock Edition to older PocketMine versions with better stability and performance.

CoarseMC is a server software that backports new Minecraft: Bedrock Edition versions to older PocketMine versions with better stability and performance, while retaining as many features from the new PocketMine-MP versions as possible.

Improve default Magento 2 Import / Export features - cron jobs, CSV , XML , JSON , Excel
Improve default Magento 2 Import / Export features - cron jobs, CSV , XML , JSON , Excel

Improve default Magento 2 Import / Export features - cron jobs, CSV , XML , JSON , Excel , mapping of any format, Google Sheet, data and price modification, improved speed and a lot more!

I create this code to upload CSV in database in packets of 100.

PHP-CSV-Upload I create this code to upload CSV in the database in packets of 100 elements in one for loop. Hi, This is Anmol Singh. To reach our Goal

Better Version of Cvolton's GMDprivateServer

BetterCvoltonGDPS Better Version of Cvolton's GMDprivateServer Supported version of Geometry Dash: 1.0 - 2.11 (so any version of Geometry Dash works,

We go for better world
We go for better world

Nasa-Space-Apps-Challenge-2021 We go for better world Team: Dynamo Warrior Team Member Mazharul Hasan Fozilatunnesa Mestu Paul Nayeem Hossain Belal Ud

Owner
null
Better Moderation, moderation just done better.

Better Moderation Plugin Commands /ban <player> <reason> <time> - Bans a player from the server. /blacklist <player> - Blacklists a player from the se

Colby Pham 5 Jun 15, 2023
Transfers you to the server of your choice when you join

Automatic-Server-Transfer Transfers you to the server of your choice when you join when installed this plugin automaticly transfers you to the server

null 3 Nov 4, 2021
:date: The VObject library for PHP allows you to easily parse and manipulate iCalendar and vCard objects

sabre/vobject The VObject library allows you to easily parse and manipulate iCalendar and vCard objects using PHP. The goal of the VObject library is

sabre.io 532 Dec 25, 2022
Allows generate class files parse from json and map json to php object, including multi-level and complex objects;

nixihz/php-object Allows generate class files parse from json and map json to php object, including multi-level and complex objects; Installation You

zhixin 2 Sep 9, 2022
Laravel Larex lets you translate your whole Laravel application with a single CSV file.

Laravel Larex Laravel Larex lets you translate your whole Laravel application with a single CSV file. You can import translation entries from lang fol

Luca Patera 68 Dec 12, 2022
:globe_with_meridians: List of all countries with names and ISO 3166-1 codes in all languages and data formats.

symfony upgrade fixer • twig gettext extractor • wisdom • centipede • permissions handler • extraload • gravatar • locurro • country list • transliter

Saša Stamenković 5k Dec 22, 2022
Magento 2 SEO extension will do perfectly for your better SEO.

Magento 2 SEO extension will do perfectly for your better SEO. This is a bundle of outstanding features that are auto-active when you install it from Mageplaza without any code modifications. It is also friendly with your store if you need to insert meta keywords and meta descriptions for your product.

Mageplaza 121 Oct 28, 2022
Parse DSN strings into value objects to make them easier to use, pass around and manipulate

DSN parser Parse DSN strings into value objects to make them easier to use, pass around and manipulate. Install Via Composer composer require nyholm/d

Tobias Nyholm 77 Dec 13, 2022
Melek Berita Backend is a service for crawling data from various websites and processing the data to be used for news data needs.

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

Chacha Nurholis 2 Oct 9, 2022
Provide CSV, JSON, XML and YAML files as an Import Source for the Icinga Director and optionally ship hand-crafted additional Icinga2 config files

Icinga Web 2 Fileshipper module The main purpose of this module is to extend Icinga Director using some of it's exported hooks. Based on them it offer

Icinga 25 Sep 18, 2022