Skip to content

Instantly share code, notes, and snippets.

View LeMoussel's full-sized avatar

LeMoussel LeMoussel

View GitHub Profile
@LeMoussel
LeMoussel / Chromedriver_Get_Response.py
Last active November 28, 2024 04:12
Python Selenium: Get response attributes via the ChromeDriver performance logging capability
"""
Implementation of the Selenium Chrome WebDriver with HTTP Response data
included via the ChromeDriver performance logging capability
"""
import json
from requests.structures import CaseInsensitiveDict
# https://github.com/SeleniumHQ/selenium
from selenium import webdriver
@LeMoussel
LeMoussel / contentloader.py
Created February 15, 2021 14:15
Compare keyword extraction results, in French language, from TF/IDF, Yake, KeyBert.
import os
import codecs
import urllib3
import gzip
from pathlib import Path
# CChardet is faster and can be more accurate
try:
import cchardet as chardet
except ImportError: