Software Alternatives & Reviews

Running a scrapy spider in the background in a Flask app

Scrapy Flask
  1. 1
    Scrapy | A Fast and Powerful Scraping and Web Crawling Framework
    Pricing:
    • Open Source
    I'm building an app that uses Flask and Scrapy. When the root URL of my app is accessed, it processes some data and displays it. In addition, I also want to (re)start my spider if it is not already running. Since my spider takes about 1.5 hrs to finish running, I run it as a background process using threading. Here is a minimal example (you'll also need testspiders):.

    #Web Scraping #Data Extraction #Data 93 social mentions

  2. 2
    a microframework for Python based on Werkzeug, Jinja 2 and good intentions.
    Pricing:
    • Open Source
    I'm building an app that uses Flask and Scrapy. When the root URL of my app is accessed, it processes some data and displays it. In addition, I also want to (re)start my spider if it is not already running. Since my spider takes about 1.5 hrs to finish running, I run it as a background process using threading. Here is a minimal example (you'll also need testspiders):.

    #Python Web Framework #Web Frameworks #Developer Tools 42 social mentions

Discuss: Running a scrapy spider in the background in a Flask app

Log in or Post with