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

Save scraper logs in csv #73

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Save scraper logs in csv #73

wants to merge 4 commits into from

Conversation

urvishp80
Copy link
Contributor

@urvishp80 urvishp80 commented Jul 5, 2024

Create a scraper logs for each Scraper in an individual csv file

@urvishp80 urvishp80 requested a review from kouloumos July 5, 2024 17:18
Copy link
Contributor

@kouloumos kouloumos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current implementation generates a separate log.csv file for each day, which complicates tasks such as reviewing logs from the past X days since it requires opening X different files. This approach is similarly cumbersome when trying to fetch logs for a specific scraper, as we might need to do after (or as part of) bitcoinsearch/bitcoinsearch-app#137.

Switching to a single .csv file per scraper would streamline this process. By including an ISO 8601 timestamp as the first column in the .csv file - consistent with the created_at field in the Elasticsearch documents - logs can be more easily filtered and accessed based on both time and scraper.

.github/workflows/bitcoinops.yml Outdated Show resolved Hide resolved
.github/workflows/stackexchange.yml Show resolved Hide resolved
mailing-list/main.py Outdated Show resolved Hide resolved
mailing-list/main.py Outdated Show resolved Hide resolved
mailing-list/main.py Outdated Show resolved Hide resolved
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

Successfully merging this pull request may close these issues.

2 participants