We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The example:
from toapi import XPath, Item, Api api = Api() class Movie(Item): __base_url__ = 'http://www.dy2018.com' url = XPath('//b//a[@class="ulink"]/@href') title = XPath('//b//a[@class="ulink"]/text()') class Meta: source = XPath('//table[@class="tbspan"]') route = '/' class Post(Item): __base_url__ = 'https://news.ycombinator.com/' url = XPath('//a[@class="storylink"]/@href') title = XPath('//a[@class="storylink"]/text()') class Meta: source = XPath('//tr[@class="athing"]') route = '/' api.register(Movie) api.register(Post) api.serve()
The text was updated successfully, but these errors were encountered:
When I visite http://127.0.0.1:5000/, it excepted to result in:
{ post:[], movie:[] }
When I visit http://127.0.0.1:5000/www.dy2018.com/, it excepted to result in:
{ movie:[] }
When I visit http://127.0.0.1:5000/news.ycombinator.com/, it excepted to result in:
{ post:[] }
Sorry, something went wrong.
Multiple site route problem #38
1d20b3f
No branches or pull requests
The example:
The text was updated successfully, but these errors were encountered: