mirror of
https://github.com/thecyberlearn/chat-backend.git
synced 2026-08-18 15:12:54 +00:00
Features: - Django REST API backend - Multi-strategy web scraping system (Beautiful Soup, Playwright, Firecrawl) - Anti-detection features (proxy rotation, user-agent rotation) - Data export functionality (JSON, CSV, TXT) - Business and CrawledPage models - Enhanced crawling service with fallback mechanisms 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
26 lines
1.1 KiB
Cython
26 lines
1.1 KiB
Cython
from lxml.includes.tree cimport xmlDoc, xmlOutputBuffer, xmlChar
|
|
from lxml.includes.xpath cimport xmlNodeSet
|
|
|
|
cdef extern from "libxml/c14n.h" nogil:
|
|
cdef int xmlC14NDocDumpMemory(xmlDoc* doc,
|
|
xmlNodeSet* nodes,
|
|
int exclusive,
|
|
xmlChar** inclusive_ns_prefixes,
|
|
int with_comments,
|
|
xmlChar** doc_txt_ptr)
|
|
|
|
cdef int xmlC14NDocSave(xmlDoc* doc,
|
|
xmlNodeSet* nodes,
|
|
int exclusive,
|
|
xmlChar** inclusive_ns_prefixes,
|
|
int with_comments,
|
|
char* filename,
|
|
int compression)
|
|
|
|
cdef int xmlC14NDocSaveTo(xmlDoc* doc,
|
|
xmlNodeSet* nodes,
|
|
int exclusive,
|
|
xmlChar** inclusive_ns_prefixes,
|
|
int with_comments,
|
|
xmlOutputBuffer* buffer)
|