Scraping job postings from public websites is legal. However, you should always check the Terms of Use on the websites you intend to scrape just to be safe.