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

TXT output saving only 6 lines #87

Open
lacertrader opened this issue Jun 9, 2023 · 1 comment
Open

TXT output saving only 6 lines #87

lacertrader opened this issue Jun 9, 2023 · 1 comment

Comments

@lacertrader
Copy link

Hi.
The TXT output is saving only 6 lines, the code runs and writes 6 lines and clear the TXT, so writes more 6 lines and clear the TXT... inside a loop, and at the end the TXT file remains with only 6 lines.

@lacertrader
Copy link
Author

Solved:
changed line 57:
from - with open(f'{country}.txt', 'w') as f:
to - with open(f'{country}.txt', 'a') as f:

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

No branches or pull requests

1 participant