# Summary
* **Python**
* Scrapy
* Example
## Python
* Is a: high-level / general-purpose / interpreted / dynamic language
* Slogan: There is only one way to do it
* Nice at: REPL (Read-Eval-Print Loop)

### Language Popularity

### The Zen of Python, by Tim Peters
* python -c "import this"
```
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
```
# Summary
* Python
* **Scrapy**
* Example
## Scrapy
* Scrapy, a fast high-level web crawling & scraping framework for Python
* Easy Install: `pip install scrapy`
* Scrapy shell
### Spider Intro
* Start url
* Request (url, headers, meta...)
* Middleware (cookie, user-agent...)
* Response (url, status, headers, body...)
### Xpath
* Select element in domtree

# Summary
* Python
* Scrapy
* **Example**
## Example
* Ask Question at any time
### Try Scrapy (mainly for scrapy shell)
### Write a Small spider on show
### Some Resources
* Learn Python https://learnxinyminutes.com/docs/python/
* Scrapy docs http://doc.scrapy.org/en/latest/intro/overview.html
* WeScraper https://github.com/LKI/wescraper
Thank you
You can find this slide at
-
or scan this QR code