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
No README.me, as instruções para a criação de scrapers dizem para usar yield para retornar uma linha da tabela:
yield
O método de parsing deve devolver (com yield) um dicionário com as seguintes chaves:] date: ...
date
Só que os novos scrapers usam, em vez disso, self.add_report, self.add_city_case, etc:
self.add_report
self.add_city_case
for city, city_data in cases.items(): confirmed = city_data["confirmed"] deaths = city_data.get("deaths", 0) try: self.get_city_id_from_name(city) except KeyError: imported_confirmed += confirmed imported_deaths += deaths else: self.add_city_case(city=city, confirmed=confirmed, deaths=deaths) total_confirmed += confirmed total_deaths += deaths
A documentação deveria refletir a interface atual para a criação dos scrapers.
The text was updated successfully, but these errors were encountered:
atualiza as instruções sobre como criar spiders (turicas#149)
f93262a
c7a0915
59dec4c
cd62d66
Successfully merging a pull request may close this issue.
No README.me, as instruções para a criação de scrapers dizem para usar
yield
para retornar uma linha da tabela:Só que os novos scrapers usam, em vez disso,
self.add_report
,self.add_city_case
, etc:A documentação deveria refletir a interface atual para a criação dos scrapers.
The text was updated successfully, but these errors were encountered: