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 April 18, 2024 10:20
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: