Skip to content

Dynamic Job Board parsing #88

@StanBoyet

Description

@StanBoyet

We've been talking about having a job board app to make our offer appealing.
Could a first step of it be done in the same way we scrap the info for our Rubyshops list?

This is the related code:

  def ruby_shops
    csv_data = open('https://raw.githubusercontent.com/brug-be/rubyshops/master/bnlrubyshops.csv').read
    hash = CSV.new(csv_data, headers: true, header_converters: :symbol)
    hash.to_a(&:to_hash).sort_by { |hsh| hsh[:city] }
  end

And them we access it in the view.

Could we do the same with this markdown?
The steps I (naively) see are:

  1. Get the doc (easy, open('https://raw.githubusercontent.com/brug-be/jobboard/master/README.md').read works fine to get the page content
  2. Get only the content under the ## Open positions
  3. Regex to parse all the lines
  4. For each line, open() the given link
  5. Parse in markdown the content of what we got
  6. Use it the same way we do the rubyshops

I'm lacking some expertise on regex, but I'm willing to get the process started and provide the structure if someone is interested.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions