This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alert("i am an alert") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fastapi import FastAPI, Depends, Query | |
from starlette.requests import Request | |
from starlette.responses import JSONResponse | |
import starlette.status | |
from pydantic import BaseModel, validator | |
import datetime | |
from typing import List | |
from dataclasses import dataclass, field | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import lxml.etree | |
namespaces = {'dc': u"http://purl.org/dc/elements/1.1/"} | |
content = lxml.etree.fromstring(s) | |
content.xpath('//dc:description', namespaces=namespaces)[0].text |