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',
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel.DataAnnotations; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Net.Mime; | |
using System.Text.Json; | |
using System.Text.Json.Serialization; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Mvc; |
public sealed class LoginType | |
{ | |
public string Name { get; set; } | |
public static ICollection<LoginType> All { get; set; } = new List<LoginType>(); | |
public static LoginType Internal = new LoginType(nameof(Internal)); | |
public static LoginType Customer = new LoginType(nameof(Customer)); | |
public static LoginType Impersonation = new LoginType(nameof(Impersonation)); |
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net5.0</TargetFramework> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="5.0.4" /> | |
<PackageReference Include="NewId" Version="3.0.3" /> |
public static class HostBuilderExtensions | |
{ | |
public static IHostBuilder UseStartup<TStartup>(this IHostBuilder hostBuilder) | |
where TStartup : class => | |
hostBuilder.ConfigureServices((ctx, sc) => | |
{ | |
var startupType = typeof(TStartup); | |
var startupArgs = startupType | |
.GetConstructors().First() | |
.GetParameters() |
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; |