Thief v0.1.2 Thief View Source
Documentation for Thief. Scrape and get image link"
Link to this section Summary
Functions
Collect the linked links and return the list
Get a list of links within the domain." "
Thief.save Save the created list as a file
Get body element of URL destination
Return a list of image links from the body element
Return a list of links from the body element
Collect the linked image links and return the list
Collect the linked image links and return the list
Thief.steal make a list of URLs and create a list of image downloads. We only get lists within the domain
your get link or images at URL
your get link or images at URL
Thief.steal make a list of URLs and create a list of image downloads. We only get lists within the domain
Link to this section Functions
get_domain_img(domain, path) View Source
Collect the linked links and return the list.
Examples
iex> Thief.get_domain_img( domain, path ) [https://xxxx.com/img.png,https://xxxx.com/img.jpg]
get_domain_link(domain) View Source
Get a list of links within the domain." "
Examples
iex> Thief.get_domain_link( domain ) [https://xxxx.com/img.png,https://xxxx.com/img.jpg]
get_domain_link(domain, path) View Source
Thief.save Save the created list as a file.
Examples
iex> Thief.save(list, file_name )
file_name
get_html(url) View Source
Get body element of URL destination.
## Examples
iex> { :ok, body } = Thief.get_html("https://github.com")
get_imgs(body) View Source
Return a list of image links from the body element.
## Examples
iex> Thief.get_imgs(body) ["https://xxxxx.com/", "https://xxxxx.com/"]
get_links(body) View Source
Return a list of links from the body element.
## Examples
iex> list = Thief.get_links(body) ["https://xxxxx.com/", "https://xxxxx.com/"]
getimage(url) View Source
Collect the linked image links and return the list.
## Examples
iex> Thief.getimage( url ) [https://xxxx.com/img.png,https://xxxx.com/img.jpg]
getlink(url) View Source
Collect the linked image links and return the list.
Examples
iex> Thief.getlink( url ) [https://xxxx.com/img.png,https://xxxx.com/img.jpg]
save(list, file_name) View Source
Thief.steal make a list of URLs and create a list of image downloads. We only get lists within the domain.
Examples
iex> list = Thief.steal( domain, path )
[https://xxxx.com/img.png,https://xxxx.com/img.jpg]
steal(domain, path) View Source
your get link or images at URL.
## Examples
iex> Thief.steal( "https://xxxx.com" , "/" )
[https://xxxx.com/img.png,https://xxxx.com/img.jpg]
steal_img(domain) View Source
steal_img(domain, path) View Source
your get link or images at URL.
## Examples
iex> Thief.steal( "https://xxxx.com" , "/xxx/xxxx.html" )
[https://xxxx.com/img.png,https://xxxx.com/img.jpg]
iex> Thief.steal( "https://xxxx.com" )
[https://xxxx.com/img.png,https://xxxx.com/img.jpg]
steal_link(domain) View Source
steal_link(domain, path) View Source
Thief.steal make a list of URLs and create a list of image downloads. We only get lists within the domain.
Examples
iex> list = Thief.steal_link( domain, path )
[https://xxxx.com/img.png,https://xxxx.com/img.jpg]