Comments (3)
Hi @kondounagi, could you please be more specific? Please bear in mind however that the library is not geared towards browser automation.
from trafilatura.
Hi @adbar , thank you for your excellent tool!
trafilatura.fetch_url
and other helper functions in this library help gather texts from the web; however, we cannot apply them to websites with basic authentication, which require a username and password.
For example, when I gather docs from a basic-authed website, I must use the requests
library to pass basic auth like below.
class BasicAuth:
def __init__(self, username: str, password: str):
self.session = requests.Session()
self.session.auth = username, password
def __call__(self, _url):
return self.session.get(_url)
I hope we can specify our id and password of basic auth in fetch_url
and other helper functions!
from trafilatura.
I understand, thanks for the details. The issue seems related to #322 and could be addressed by providing a more configurable function to fetch HTML documents. Let's keep the issue open for now.
from trafilatura.
Related Issues (20)
- ValueError: signal only works in main thread HOT 2
- Proxy support to Trafilatura HOT 4
- Headers with classes dont get detected HOT 1
- Paras get broken up into fragments HOT 3
- Doesn't detect bullet points within tables HOT 5
- Simple HTML processing issue? HOT 4
- Unnecessary Comments LOG INFO HOT 1
- Codeblock Markdown formatting is missing HOT 3
- Cannot extract Heading tags HOT 26
- [1.6.0] New Content Hashes HOT 2
- Restrictions on Web Crawling HOT 2
- Unable to extract metadata w/o authors `additionalName`
- More robust backup parsing HOT 1
- Gooey dependency seems unmaintained and broken HOT 1
- Function to use part of the heuristics on bare HTML fragments
- metadata extraction problem HOT 8
- XMLSyntaxError during conversion to XML output HOT 1
- Option to convert relative links HOT 1
- Doesn't seem to work with recent charset-normalizer HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trafilatura.