Skip to content

Task 2: fetch data from the Factory table (in the Disfactory database) to the Location table #10

@yalgorithm777

Description

@yalgorithm777

In this task, you need to write a python script to fetch data from the Factory table (in the Disfactory database) to the location table. The script needs to use the operation functions developed in Task 1 to put data into the location table.

The description of the Factory table is in the "/factories/{factory_id}" section in the Disfactory API page.

IMPORTANT: make sure that you read the Coding Standards section before writing code.

IMPORTANT: open separate branches and request code reviews to merge into the main branch when the subtasks are done.

Notes:

  • For each factory in the Disfactory database in the Factory table , you need to create two rows in our location table. The first row is for year 2017, and the second row is for year 2020.
  • When writing the URL to the "source" column in our location table, put this value "https://data.csrsr.ncu.edu.tw/SP/"

Please reply to this issue if there are questions.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions