Scrapy Crawl information about home rental and generate mobile app (ii)

Source: Internet
Author: User

As the crawler in the previous section has been defined in scrapy, we are ready to build the app.

There are a lot of software to generate the app, here we need to drive the database, select the Appery.io.

1. Build the database

After registration is complete, add a new line of users, named Root, to the Database tab. The new database is then added with the name Scrapy and the new collections named properties.

Finish is visible:

Then add the required database fields in the collections:

Property selects string first. The database definition is complete.

2. Receiving data

Yes Appery the data needed to receive our crawlers requires APIs and programs.

The API key can be found in the setting under collections, which is copied first.

Additional installation of Scrapyapperyio is required:

>pip Install Scrapyapperyio

In addition, you need to add a statement in the setting file under the Crawler project:

Item_pipelines = {'scrapyapperyio. Apperyiopipeline':'eaa757de-3004-46d2-9ac0-bfe1cb5d85e0'    # API key'root'root  'properties'

Ok! Start the bot again ... Go back to collections, the data is already coming in, huh.

3. Design the App

When you create an app, select Database Services, and then select Page,app's layout in project to show in the middle, we add a row to it, two columns grid,image on the left side, one link and lebal.

Then select the Data tab, select Service under Data source and add, open the success mapping.

Save the fields in the database with the front-end labels.

Adding Startscreen in events starts when the service loads, increasing the load speed.

Save it all, test it:

has been shown, but unfortunately the network problem cannot be loaded QR code, or the phone can be directly scanned code to view.

Of course, the project code can also be exported directly in export.

Scrapy Crawl information about home rental and generate mobile app (ii)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.