<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Get talkID from main page
"""
import re
import requests

from local_settings import url


def __parser(raw_data):
    regex = re.compile(r'talkId\s*:')
    result = regex.search(raw_data)
    print(result.group(0))


def get_talk_id(url):
    session = requests.session()
    repo = session.get(url)

    if repo.status_code == 200:
        __parser(repo.text)

if __name__ == '__main__':
    get_talk_id(url)<commit_msg>Imp: get talk id from raw page<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Get talkID from main page
"""
import re
import requests

from local_settings import url


def __parser(raw_data):
    regex = re.compile(r'talkId\s*:(.*)')
    result = regex.search(raw_data)
    print(result.group(0))


def get_talk_id(url):
    session = requests.session()
    repo = session.get(url)

    if repo.status_code == 200:
        __parser(repo.text)

if __name__ == '__main__':
    get_talk_id(url)
{'fraction_non_alphanumeric': 0.14400805639476336, 'fraction_numerical': 0.010070493454179255, 'mean_word_length': 3.4774774774774775, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6384661', 'n_tokens_mistral': 363, 'n_tokens_neox': 347, 'n_words': 81}