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:
- Get the doc (easy,
open('https://raw.githubusercontent.com/brug-be/jobboard/master/README.md').read works fine to get the page content
- Get only the content under the
## Open positions
- Regex to parse all the lines
- For each line,
open() the given link
- Parse in markdown the content of what we got
- 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.
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:
And them we access it in the view.
Could we do the same with this markdown?
The steps I (naively) see are:
open('https://raw.githubusercontent.com/brug-be/jobboard/master/README.md').readworks fine to get the page content## Open positionsopen()the given linkI'm lacking some expertise on regex, but I'm willing to get the process started and provide the structure if someone is interested.