Comments (6)
dalsi problemy
Jake formaty chceme nacitat.
Jake vystupni formaty chceme.
from onigumo.
#118 slightly blocks this because, without the rename, we’d end up with a module called Onigumo that is essentially a Downloader and then a new Parser module. Or even worse, to fit into the naming and architecture, we’d stuff everything into the existing Onigumo module.
from onigumo.
#118 got merged; I am removing the “blocked” label.
from onigumo.
To answer your questions, @nappex:
The input of the parser will be anything downloaded from the Internet. Typically, this is an HTML page, but it can be a plain text file or a JSON API response. It is Spider’s job to know and discern the format; Onigumo can only provide a set of tools (like #87) to make everyday tasks easier.
The output format will be a structured representation of the input data. JSON was my first pick for its universality, and I preferred it over YAML because the data will be processed only by a machine. The output can be, however, whatever kind of structured data, be it a serialized object of a programming language of the Spider, an XML document, or some binary format.
Theoretically, Onigumo doesn’t even need to force a concrete structure format. Having one would make it easy to define specific standardized nodes in the schema, allowing to control the core without writing any code. On the other hand, a piece of Spider code that knows its file format can provide the same data just as fine.
Feel free to share any thoughts on the topic!
from onigumo.
The work has begun: #146
from onigumo.
I extracted the steps described in your description (#89 (comment) and #89 (comment)), @nappex, to a new follow-up Issue #169. Feel free to take a look!
from onigumo.
Related Issues (20)
- Upgrade dependencies to their latest versions
- File.Error if no urls.txt HOT 1
- Component in the help message should not be in brackets
- Check if working dir exists HOT 1
- Fail if working directory not clean
- Improve CLI test comments
- Rename root_path to working_dir
- Exit codes
- Consider Optimus libraryfor parsing CLI arguments
- Extract option parsing to a separate function
- Test valid path, permission etc. HOT 1
- queue 😱
- Improve @moduledoc’s
- Split lint and test in CI
- Should mocks be configured in config files
- Create a feeder module
- Utilize a supervisor
- Test :ok in Downloader main
- Strict compare === at least in tests HOT 1
- Add an integration test for the Downloader → Parser workflow
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 onigumo.