Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8b797ca

Browse files
committed
correct image links in tutorial
Just as the last issue, seems the file structure changed. To be honest, this is my first Propose file change, and I don't know whether the correction is right or not. Just hope can help a little.
1 parent a3df279 commit 8b797ca

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/tutorial/HTML-and-CSS-Selector.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ As we want to get all of the movies on [IMDb], the first thing is finding a list
3737

3838
By looking around at the index page of [IMDb], I found this:
3939

40-
![IMDb front page](imgs/tutorial_imdb_front.png)
40+
![IMDb front page](../imgs/tutorial_imdb_front.png)
4141

4242
[http://www.imdb.com/search/title?count=100&title_type=feature,tv_series,tv_movie&ref_=nv_ch_mm_1](http://www.imdb.com/search/title?count=100&title_type=feature,tv_series,tv_movie&ref_=nv_ch_mm_1)
4343

4444
### Creating a project
4545

4646
You can find "Create" on the bottom right of baseboard. Click and name a project.
4747

48-
![Creating a project](imgs/creating_a_project.png)
48+
![Creating a project](../imgs/creating_a_project.png)
4949

5050
Changing the crawl URL in `on_start` callback:
5151

@@ -60,7 +60,7 @@ Changing the crawl URL in `on_start` callback:
6060
6161
Click the green `run` button, you should find a red 1 above follows, switch to follows panel, click the green play button:
6262

63-
![Run one step](imgs/run_one_step.png)
63+
![Run one step](../imgs/run_one_step.png)
6464

6565
Index Page
6666
----------
@@ -103,7 +103,7 @@ You can use CSS Selector with built-in `response.doc` object, which is provided
103103

104104
pyspider provide a tool called `CSS selector helper` to make it easier to generate a selector pattern to element you clicked. Enable CSS selector helper by click the button and switch to `web` panel.
105105

106-
![CSS Selector helper](imgs/css_selector_helper.png)
106+
![CSS Selector helper](../imgs/css_selector_helper.png)
107107

108108
The element will be highlighted in yellow while mouse over. When you click it, a pre-selected CSS Selector pattern is shown on the bar above. You can edit the features to locate the element and add it to your source code.
109109

@@ -142,7 +142,7 @@ Add keys you need to result dict and collect value using `CSS selector helper` r
142142

143143
Note that, `CSS Selector helper` may not always work. You could write selector pattern manually with tools like [Chrome Dev Tools](https://developer.chrome.com/devtools):
144144

145-
![inspect element](imgs/inspect_element.png)
145+
![inspect element](../imgs/inspect_element.png)
146146

147147
You doesn't need to write every ancestral element in selector pattern, only the elements which can differentiate with not needed elements, is enough. However, it needs experience on scraping or Web developing to know which attribute is important, can be used as locator. You can also test CSS Selector in the JavaScript Console by using `$$` like `$$('[itemprop="director"] span')`
148148

@@ -154,7 +154,7 @@ Running
154154
3. Changing the `status` to `DEBUG` or `RUNNING`.
155155
4. Press the `run` button.
156156

157-
![index demo](imgs/index_page.png)
157+
![index demo](../imgs/index_page.png)
158158

159159
Notes
160160
-----

0 commit comments

Comments
 (0)