---
# System prepended metadata

title: 教材連結

---

Github & python 期末
[TOC]
# 教材連結
- [Github](https://docs.google.com/presentation/d/123JcZ-YwsCXcY6PYHk31_1wCss0ukQFGQ05SrOa6ZIg/edit#slide=id.p)
- [Python](https://docs.google.com/presentation/d/14pCla_krES-uVRrrv-aW1XtZNFV0ArhNn89WVedeV3Y/edit#slide=id.p)
- [LXML](https://docs.google.com/presentation/d/1NlL53lFLXfEDrUTL3dqJBUS3XLyjpIIE6DsXqO9nxNg/edit#slide=id.p)
# Git
# Github
```
git clone https://github.com/lisasasasa/Itc-python-hw-code.git
```
# Python
- list
    - append pop del[第幾個]
- dict
    - ```d = {'key_a': 'value', 'key_b': 2}```
    - ```d['key'] = 'value'```

- enumarate
    - ```enumerate(sequence [start=0])```
- Class

# LXML

# HW
## args
- argparse 套件
```python=
# 最基本的module
argparse.ArgumentParser()
args = parser.parse_args()

# parser.add_argument("here1",help="here1")
# here1 為我可以接收的參數 
 parser.add_argument('--start-date')
# --start-date [start_date] start_date可以接值
# here2 為我下 -h 會出現的提示

```
# Readme

## Team members
- 王苡涵、陳奕瑄、蔡旻諺

## School ids
- B08902037, B08902057, B08902103

## Brief introduction:
- This is a crawler which can turn [NTU CSIE news](https://www.csie.ntu.edu.tw/news/news.php?class=101) into a csv file.
- When calling main.py by using the command below:
```
python3 main.py --start-date [start date] --end-date [end date] --output [out filename]
```
- The program will create a file called "[out filename].csv" which includes dates, titles and contents in the period([start date] ~ [end date]).

## Environment
- Python 3.7.2
- Lxml 4.4.2

## Collaboration contribution
- 
