Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix closespider_itemcount/timeout features #79

Merged
merged 6 commits into from
Apr 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,14 @@ historical archival.
middlewares: [
Crawly.Middlewares.DomainFilter,
Crawly.Middlewares.UniqueRequest,
Crawly.Middlewares.UserAgent
{Crawly.Middlewares.UserAgent, user_agents: ["Crawly Bot"]}
],
pipelines: [
{Crawly.Pipelines.Validate, fields: [:url, :title]},
{Crawly.Pipelines.DuplicatesFilter, item_id: :title},
Crawly.Pipelines.JSONEncoder,
{Crawly.Pipelines.WriteToFile, extension: "jl", folder: "/tmp"} # NEW IN 0.7.0
],
port: 4001
{Crawly.Pipelines.WriteToFile, extension: "csv", folder: "/tmp"}
]
```
5. Start the Crawl:
- `$ iex -S mix`
Expand All @@ -108,7 +107,7 @@ You can read more here:

1. [x] Pluggable HTTP client
2. [x] Retries support
3. [ ] Cookies support
3. [x] Cookies support
4. [x] XPath support - can be actually done with meeseeks
5. [ ] Project generators (spiders)
6. [ ] UI for jobs management
Expand Down
147 changes: 0 additions & 147 deletions documentation/introduction.md

This file was deleted.

78 changes: 0 additions & 78 deletions documentation/quickstart.md

This file was deleted.

2 changes: 1 addition & 1 deletion lib/crawly/manager.ex
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ defmodule Crawly.Manager do

maybe_stop_spider_by_timeout(
state.name,
items_count,
delta,
closespider_timeout_limit
)

Expand Down
5 changes: 2 additions & 3 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,12 @@ defmodule Crawly.Mixfile do

defp extras do
[
"documentation/introduction.md",
"documentation/quickstart.md",
"documentation/tutorial.md",
"documentation/basic_concepts.md",
"documentation/configuration.md",
"documentation/http_api.md",
"documentation/ethical_aspects.md"
"documentation/ethical_aspects.md",
"README.md": [title: "Introduction", file: "README.md"]
]
end
end