_russellb

_russellb

I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’t hold back. Thanks.

Showing Posts 45 to 36

moshin

moshin

This looks amazing, hope you find the time to develop it further!

oltarasenko

oltarasenko

Hey people, sorry for restoring this a bit old topic again, but I want to add another library called CrawlyUI to the discussion.

You might wonder why I decided to add another library here, as well as there are plenty here already. Well, I believe it’s somehow different as:

  1. It simplifies the preview of extracted data
  2. Allows to schedule jobs on different nodes
  3. Allows defining spiders from the UI, so you don’t have to write code at all, and will get a spider capable of extracting data.

You can find the deployed version here: http://crawlyui.com/
And a short explanation on how to create a spider here: https://www.youtube.com/watch?v=1O-XArob5rU&ab_channel=OlegTarasenko

Really hope you will like it!

oltarasenko

oltarasenko

Hey, @dogweather I just wonder how it goes? E.g. I wonder if you have tried it out? Did you have any issues?

From our side, I have asked my colleagues to have a glance at the target you have shared. Taking into account that crawly can’t save data in a nested JSON, I have advised them to use a flat structure, injecting all fields into one basic item.

So far our results are far away from being ideal :cry:
see: http://crawlyui.com/spider?spider=Elixir.Spiders.OregonRegs

I wonder if you tried it from your side, and if you have managed to gather more items than we did.

dogweather

dogweather

Excellent - we have several scrapers running nightly, and are continually writing more, to extract online laws from various countries and locations. My startup, https://public.law, makes the laws easier to read and search.

I use scrapers to create JSON representations of each legal resource. Usually, a collection of laws are hierarchical - a tree of e.g., Divisions > Chapters > Sections. And so I like to write scrapers which return a single JSON tree because it’s easier to capture the parent/child relationships while the spider is running, than to try to recreate it on import.

The final result, after import, is a website like this: Nevada Revised Statutes (NRS) — created from the Haskell scraper’s output.

Occasionally, we want to scrape a publication which is just a flat set of documents. E.g., not laws, but Official Opinions. In that case, I’m writing a traditional one-JSON-object-per-page scraper:


So! You can see we’ve been trying several strategies — Haskell scrapers (running in Docker via a cron job) to Scrapy (running on Scraping Hub). But this looks like a great use case for Elixir / Beam / OTP.

oltarasenko

oltarasenko

@dogweather great! It would be great to know more about your use case, to see if we can help.

Otherwise also please be warned that Scrapy is far ahead of us in terms of stability and features. So it may be that a migration to Crawly will not be smooth, depending on your use case, and maybe will require patches to Crawly itself.

However from my side I can promiss my support with that things!

dogweather

dogweather

I’m really excited about giving Crawly a try. I’m using Scrapy currently, but I’d like to move away from Python.

oltarasenko

oltarasenko

Hey people,

I want to announce that I have released a new version of

Crawly

. The 0.8.0 contains a few important features like:

  • retries support
  • browser rendering (for JavaScript-based websites).

Hopefully, you could find it useful for your needs!

oltarasenko

oltarasenko

Btw here I have made another article about using Crawly with Tensorflow, which allows to organize machine learning project: Build Machine Learning Elixir Project

oltarasenko

oltarasenko

I wonder if it’s built with elixir? E.g. I did not find any information regarding how the framework works.

jacksmith

jacksmith

For web scraping, you can try this tool https://app.scrape.works/create-project to explore more scraping information.

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
kpanic
Hi everyone, I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding. I sta...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
asweet-confluent
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
apz
I’m new to elixir and just tried to install the elixirLS extension for VScode(ium) and it is throwing some errors that I would like help ...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews