Git Product home page Git Product logo

foodpandascraper2's Introduction

Setup:

  • credentials.py based on credentials_sample.py
  • scrapy crawl food

TODO:

  • add menu model
  • append scrapy to table names
  • move all products from options to the products table
    • add flag 'is_menu_item'
      • ! determine if menu item based on existence of menu_category_id instead
    • options will only contain prod_id and price
  • images table + pipeline:
    • save locally with product id as name
  • skip vendor if crawled recently
  • combo menu items are products with options that are other menu items
    • add vendor
    • add toppings + options (products + product options)
    • add the rest normally
    • go thru all products that have a menu_cat.id and check for combos
      • use .join() in sqlalchemy to get all menu_item_products of a vendor
  • images retry with different widths
    • try requests from predefined array of width
    • Solved: added download delay => all images @ 5000px
  • add remaining vendor data
    • vendor banner
  • images table (one products many images) -> figure out after s3 integration
  • requirements.txt
  • sepparate credentials file
  • skip vendor if recently crawled
  • vendor updated_at UTC timezone info
  • s3 path

Potential Issues:

  • city name issue with restaurant in Arad that's actually in Cluj;
    • seems to be fixed for now on foodpanda's end but need a more reliable solution
    • ? ignore vendor-data.city_id and generate our own id's for each city url
  • Handling chains (crawling chains doesn't redirect to local vendor)

foodpandascraper2's People

Contributors

pizzadudez avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.