mirror of
https://github.com/thecyberlearn/chat-backend.git
synced 2026-08-18 22:52: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>
23 lines
804 B
Cython
23 lines
804 B
Cython
from lxml.includes.tree cimport xmlDoc, xmlNode
|
|
|
|
cdef extern from "libxml/xinclude.h" nogil:
|
|
|
|
ctypedef struct xmlXIncludeCtxt
|
|
|
|
cdef int xmlXIncludeProcess(xmlDoc* doc)
|
|
cdef int xmlXIncludeProcessFlags(xmlDoc* doc, int parser_opts)
|
|
cdef int xmlXIncludeProcessTree(xmlNode* doc)
|
|
cdef int xmlXIncludeProcessTreeFlags(xmlNode* doc, int parser_opts)
|
|
|
|
# libxml2 >= 2.7.4
|
|
cdef int xmlXIncludeProcessTreeFlagsData(
|
|
xmlNode* doc, int parser_opts, void* data)
|
|
|
|
cdef xmlXIncludeCtxt* xmlXIncludeNewContext(xmlDoc* doc)
|
|
cdef int xmlXIncludeProcessNode(xmlXIncludeCtxt* ctxt, xmlNode* node)
|
|
cdef int xmlXIncludeSetFlags(xmlXIncludeCtxt* ctxt, int flags)
|
|
|
|
# libxml2 >= 2.6.27
|
|
cdef int xmlXIncludeProcessFlagsData(
|
|
xmlDoc* doc, int flags, void* data)
|