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

Feature: Configuration Parser #29

Open
1 task done
siddiqkaithodu opened this issue Jan 12, 2025 · 1 comment
Open
1 task done

Feature: Configuration Parser #29

siddiqkaithodu opened this issue Jan 12, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@siddiqkaithodu
Copy link

siddiqkaithodu commented Jan 12, 2025

Have you searched if there an existing feature request for this?

  • I have searched the existing requests

Feature description

Needs a feature that configure the scraper from an external configuration file.

This configuration can include default proxies , default headers for different domain names that may found in the scraper with each of the domains also have seperate page types .
eg:
(listing, product page,store api etc for each domain names).

The page types will be auto determined using regex matching of the url found and the appropriate headers and proxies with the given order.
eg:

{domains:[
{
url:example.com,
types:[{
type:product,
url: example.com/prd/*,
proxies:[0.0.0.0,9.9.9.9],
header:{
..........
}
},
{
type:listing,
url: example.com/listing/*,
proxies:[1.0.0.0,9.8.8.9],
header:{
..........
}
}
]
}
]
}
@siddiqkaithodu siddiqkaithodu added the enhancement New feature or request label Jan 12, 2025
@D4Vinci D4Vinci self-assigned this Jan 27, 2025
@D4Vinci
Copy link
Owner

D4Vinci commented Jan 27, 2025

Thanks for the idea, I will try to add it with version 0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants