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

Scrape SET Annual Report [LM-232] #329

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Scrape SET Annual Report [LM-232] #329

wants to merge 11 commits into from

Conversation

boss-chanon
Copy link
Contributor

Why this PR

Scrape data from SET Annual Report pipeline,

  • Download the listed companies in SET can be found here

Changes

  • Add pipeline for scrape data from SET Annual Report
  • Add pipeline for convert pdf data to jsonl

Related Issues

Close #

Checklist

  • PR should be in the Naming convention
  • Assign yourself in to Assigneees
  • Tag related issues
  • Constants name should be ALL_CAPITAL, function name should be snake_case, and class name should be CamelCase
  • complex function/algorithm should have Docstring
  • 1 PR should not have more than 200 lines changes (Exception for test files). If more than that please open multiple PRs
  • At least PR reviewer must come from the task's team (model, eval, data)

Copy link

linear bot commented Nov 11, 2023

LM-232 Scrape SET Annual Report

Rationale: We would like to use SET Annual Report to train the model

Original source format: PDF

Step by Step

  1. Download the listed companies in SET can be found here
  2. Check the link to scrape the News and download by listed companies
    1. Example link here
    2. Download in section of แบบแสดงรายการข้อมูลประจำปี/รายงานประจำปี
    3. The data should be collected 5 years back (2023-2018)
  3. Write a Python script to escape the PDF file(Using BeautifulSoup or any related libraries)
  4. Extracting text from PDF to String (Using PyPDF or any related libraries)
  5. Convert text into JSONL Structure
  6. Pull request into Our Github repository

Reviewer: kwankoravich

Copy link

codecov bot commented Nov 11, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5fbee96) 64.16% compared to head (5239299) 64.16%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #329   +/-   ##
=======================================
  Coverage   64.16%   64.16%           
=======================================
  Files          11       11           
  Lines         427      427           
=======================================
  Hits          274      274           
  Misses        153      153           
Flag Coverage Δ
unittests 64.16% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@boss-chanon boss-chanon requested a review from Chawak November 11, 2023 19:32
Copy link
Collaborator

@kwankoravich kwankoravich left a comment

Choose a reason for hiding this comment

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

Approved

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.

4 participants