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

Add explanation for argument 'base_url' #165

Merged
merged 4 commits into from
Nov 3, 2019
Merged

Add explanation for argument 'base_url' #165

merged 4 commits into from
Nov 3, 2019

Conversation

AnthonyChouGit
Copy link
Contributor

I found that there was hardly any explanation for the argument 'base_url', which is eventually passed to lxml.etree.fromstring as a base URL for the current page, useful when we need to access relevant pages or resources via relative paths. This argument is not quite important for newcomers but I think it's inappropriate to ignore it in the doc.
I added a simple explanation about it into the script and provided a link to lxml api reference, which may be helpful for those who are interested in the source code.

@codecov
Copy link

codecov bot commented Oct 31, 2019

Codecov Report

Merging #165 into master will increase coverage by 0.33%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #165      +/-   ##
========================================
+ Coverage   99.66%   100%   +0.33%     
========================================
  Files           5      5              
  Lines         296    296              
  Branches       52     52              
========================================
+ Hits          295    296       +1     
+ Misses          1      0       -1
Impacted Files Coverage Δ
parsel/selector.py 100% <ø> (ø) ⬆️
parsel/csstranslator.py 100% <0%> (+1.42%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 15e4326...28cd0f1. Read the comment docs.

parsel/selector.py Outdated Show resolved Hide resolved
Co-Authored-By: Adrián Chaves <adrian@chaves.io>
@kmike kmike merged commit 93719a1 into scrapy:master Nov 3, 2019
@kmike
Copy link
Member

kmike commented Nov 3, 2019

Thanks @pycrusher and @Gallaecio!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants