Skip to content

B1gG/GartnerEmailParser

Repository files navigation

MIT License LinkedIn Blog

GartnerEmailParser

An script to parse the emails from [email protected]

I use this script to extract the webinars details from the marketing email from Gartner to share them in my blog

python3 GartnerEmailParser.py <url>

The URL can be fount at the top of the email you receive, where it says: "This message contains graphics. If you do not see the graphics, click here to view."


positional arguments:
  URL                   url from the gartner email (at the top)

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG, --config CONFIG
                        configuration file (default: GartnerEmailParser.json)
  -b                    create the bit.ly links using your API details
  -e E [E ...]          exclude specific the months (e.g -e January February)

Config file

It should be a json styled file with the following key/value:

{
    "API_USER": "bit_ly_user",
    "API_KEY": "bit_ly_api_key"
}

you can find those at The Bitly API site.

About

An script to parse the emails from [email protected]

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages