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)