You can use re
module together with string manipulation to extract the dates easily
import requests
import re
import json
if __name__ == "__main__":
texts = [
'en los dias 3,06,8 ,9, 15 y 29 de diciembre de 2018.Por c',
import logging | |
from os import getenv | |
import httpx | |
logging.basicConfig(level=logging.DEBUG) | |
# go to https://dash.cloudflare.com/profile/api-tokens | |
# and create a token with Zone.DNS permissions | |
CLOUDFLARE_TOKEN = getenv('CLOUDFLARE_TOKEN') |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Linq.Dynamic.Core; | |
namespace LinqDemo.Cli | |
{ | |
class Person | |
{ | |
public string Name { get; set; } |
using System; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Microsoft.EntityFrameworkCore; | |
using Scratch.Core.Shared; | |
namespace Scratch.Infrastructure.Data | |
{ | |
public class DbContextBase : DbContext |
bs4 | |
lxml |
You can use re
module together with string manipulation to extract the dates easily
import requests
import re
import json
if __name__ == "__main__":
texts = [
'en los dias 3,06,8 ,9, 15 y 29 de diciembre de 2018.Por c',
#include "RollingHash.h" | |
RollingHash::RollingHash(const std::string& text, unsigned long wordLength) : text(text) { | |
this->textLength = text.size(); | |
this->wordLength = wordLength; | |
hash = 0; | |
initHash(); | |
windowStart = 0; |
import tempfile | |
import os | |
from pathlib import Path | |
def singleton(callback: callable, instance_name: str): | |
tempdir = Path(tempfile.gettempdir()) | |
lockfile = tempdir / f'{instance_name}.lock' | |
try: | |
if lockfile.exists(): |
from collections import defaultdict | |
from enum import Enum | |
import win32api | |
import win32con | |
import win32gui | |
import win32ts | |
class SessionEvent(Enum): | |
ANY = 0 |
import ctypes | |
from win32com.shell import shell, shellcon | |
import pythoncom | |
def enable_active_desktop(): | |
""" | |
Taken from: | |
https://stackoverflow.com/a/16351170 |