extracting HTML5 and javascript library APIs from web pages inside android application - javascript

I am a researcher and and I have a project on Android web based mobile application analysis. For analyzing my data set which includes so many android apk files, I wanna to extract HTML or HTML5 APIs which has been used in application web pages. I can extract used urls in the application, but I do not know how can I load or find which web and javascript APIs will be load in the application web content at run time. In the application, we may have javascript libraries, Jquery and etc which are important too.
Is there any mechanism or tool which I load the url content in that and analyse the web content? Another thing is that. some of the application web pages maybe need user user pass or based on different users load different web content.
Briefly, How can I find which web APIs have been used in the application?

I need to crawl my urls with a Scrapy in python such as scrapy.
there is a good scrapy in python here.

Related

Can a Vue application be bundled into single html file to be available offline

We have an application that uses VueJs and D3. The requirement for our users is that they wont have internet connection, so they can only accept a html file or a bunch of files(zipped folder).
My first question is if we go ahead with Vue, can we use html-webpack-plugin to bundle everything into a single html file?
My second question is: When I google bundling into a single html, Progressive Web Apps show up in search results. Are PWA's web applications that you can just open an html and it works or Or is PWA more about how to handle a webapp when it does not have access to network?
Thanks!

Apache Cordova load external website with exclusive app feature

I have a requirement where I need to migrate a website into an Apache Cordova app with minimal effort. I also need to add an extra feature that is not doable without native permissions.
The existing website contains enormous JSP content. As given here, I cannot use JSP files with Cordova. So, I'm thinking of loading (redirecting to) that website into the app. For the extra feature, I would need a two way communication between the website & the app.
I have done that previously between a native app and locally embedded HTML pages. But since the website is not locally hosted, Is the communication still possible ?

Get data from external websites using HTML5/JS for Android

I am new to HTML5/JS for Android. I was wondering if there is a way of pulling data from external sources (Just like simple html dom OR curl for PHP). Am trying to build an app which need to pull the news from other sources (like BBC etc).
I'll appreciate any idea, link,any available open source project.
Big Thanks.

Deciding an architecture for a titanium mobile application

I am fairly new to the development world. I need to built an app writing javascript on Titanium that should run on iOS as well as Android using a single codebase. I am currently targeting iPhones at the moment. The app is about a shop that is into selling traditional clothes and letting interested people know about the collection that they have. Any idea about the architecture that i should decide. Since it is quite logical that the user will update his collection of clothing frequently how should i go about it? Should i give him the client application that will run on his pc that he will make use of to update his changes? Will Appstore accept such apps? Any other points i need to know as i need to start the development asap.
I think the best solution will be an App with Web as backend. Means you can put the data in Web, and your app used particular URL's for fetching the required data in the form of XML and JSON.
Your app will parse the data and display it on the view.
If there is new images in the server, your app will download it to the iOS device.
Another option is an app which deals with HTML pages. Means you need to display the page on a web view. If you need to update the data, you can update it on the server. Also it can be of two type
Your app will load the page from remote server, using the url
Your app will download the page to iOS device and display it from there, until a new change occurs.
If you are interested in HTML and CSS, PhoneGap is another cross platform, that can also help you.
for rapid devlopment you can use python django... in your case you can use Django-tastypie for backend will be good choice.since using django you can develop it in quick time and the tastypie has api services which can used easily for retrieval and sending data
you can go through this
http://django-tastypie.readthedocs.org/en/latest/

Open files from a web application with another web application?

So these days we want things to be on the cloud.
In the desktop area we could use one application to create a file, then another to open that file.
I wonder how you accomplish this file sharing between web applications?
Eg. if I create a web application letting the user create a file, how do I share this file to another web application for opening it? Maybe the user created a PDF file on my web application and when he clicks on it, I want this file to be opened using another web application - but is not mine - so that he doesn't need to download it to open it.
Is there a standard way of sharing files between web applications easily?
Im not asking about pure technologies that could make this possible eg. REST/json, but standard specification/implementation for sharing files between applications. Cause I haven't heard of this kind of implementation, which could be good for cloud services to eliminate the need of having to download everything.
Application A assigns an URL to the file, hands the URL over to application B and application B uses HTTP to retrieve the file via the URL. If both applications are running on the same server, this will be just as efficient as reading from a file from the file system, or from a database.

Categories