Last active
October 31, 2023 02:39
-
-
Save trislee/ef36e68869ff776d2d4616499c27a999 to your computer and use it in GitHub Desktop.
Retrieve the registration link to a Bellingcat webinar for intermediate-level social media scraping in November 2023
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""This script retrieves the registration link to a paid Bellingcat webinar for | |
social media scraping, held on November 21 2023. | |
To ensure every participant gets the most out of the webinar, we require that | |
each participant is familiar with the very basics of Python (configuring an | |
environment, installing packages, running scripts) | |
By being able to run this script (using Python version 3.x) and getting the | |
correct webinar link, you're demonstrating that you meet those requirements. | |
If you have no idea what a Python environment is, or how to run this script, | |
don't worry! We offer beginner-level programming and command-line webinars too. | |
""" | |
from calendar import monthrange | |
from datetime import datetime | |
from itertools import product | |
from scipy.special import eval_legendre | |
import numpy as np | |
if __name__ == '__main__': | |
a=2 | |
b=datetime.now().year | |
d=b//(int(str(bin(a**a+1))[a:])*a) | |
c=monthrange(b,d)[-1] | |
value=int(str(b)[0])**c-int(eval_legendre(int(str(c)[::-1]),a)* a)-a*int(str(b)[-1])*(int(np.pi**(d-1)//a)-len(list(product(range((d//a)),repeat=int(str(b)[-1]))))) | |
url=f'https://events.eventzilla.net/e/advanced-scraping-webinar-{a**a}-hour-{int(value)}' | |
print(f'The link to the webinar registration page is: {url}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment