Giter Club home page Giter Club logo

gargl's People

Contributors

albinodrought avatar bekiruzun avatar jodoglevy avatar jvtrigueros avatar karoltx avatar keith-pinto avatar mross22 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gargl's Issues

Exception UnsupportedClassVersionError: Main/Gargl

Hi,
i try to test gargl i get this error :

Exception in thread "main" java.lang.UnsupportedClassVersionError: Main/Gargl : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

can your please tell me what is the problem ?
i run this command java -jar GarglJavaGenerator.jar -outdir gen -input testyahoo.gtf -lang javascript

Duplicate parameter

When you declare a parameter twice in the Gargl extension and you want to generate the code in powershell (I don't know if it cause the issue in other language...) the parameter has been duplicate causing an error when you try to import-module.

For example :
duplicate

When the code was generated
duplicateoutput

can not record some post requests when click on certain buttons

Hi Joe,

I am a big fan of Gargl. Now I have a problem, when I click on some certain buttons, I can get post requests of XHR from network tab, but I cannot get these records from Gargl. The website uses a lot of ajax. Could you please release a new version or give me some idea about how to make a complete record on all these XHR?

Thank you so much!

Response field

Hi,

Thank you for your awesome tool !

I tried it with a search engine and added a response field like in your demonstration video. The response I have when I test it isn't filtered with the css selector, I have the entire HTML file.

Did I not understand something ?

Regards,
Guduche

request & response headers - failure to load GTF into Chrome extension

Hi Joe,

when I edited the sample.gtf from the repository, then

  • removed whole Function2,
  • from Function1 I removed requests or response headers (which are optional).

A subsequent import into Gargl Chrome extension does not parse the file.
I am attaching the test data.
The JSONs are valid, syntactically correct.

Kind regards,
Karol

tutorial

joe,

Great work on this. I was wondering if you could post a tutorial on how to use node.js with the javascript output?

Get attribute value

Hi,

I'm using Gargl and it's awesome !
However I have a question : is there any way to get attribute value of an element ?

For exemple get the "href" value ?

Thanks !

How to use Gargl and pygargl to download file from website

Hi,

I am trying to use Gargl and pygargl to download a xml file from website. After get into the website, I need to click some selections to confirm which items to be downloaded, then I click the button of "export data", it will download the xml file from the website to my computer. And there is some information "content-disposition:attachment; filename=Export090916.xml" from the response headers.But I cannot find anything in response body. Could you please give me some ideas about how to download the xml file using Gargl and pygargl?

Thanks!

[Node.js] No good responses return and module require problem

Hi,
you have make an awesome tool to grab data on the web :) thanks a lot for that.

I have try to use your tool and export from the generator to a node.js module.
I have some issue :

  • jQuery module for Node.js is required yes but just npm install jquery not work I use jsdom and code that i found here :
    var jsdom = require('jsdom');
    var window = jsdom.jsdom().createWindow();
    var $ = require('jquery')(window);

But with your example node.js file return :

{ readyState: 0,
  getResponseHeader: [Function],
  getAllResponseHeaders: [Function],
  setRequestHeader: [Function],
  overrideMimeType: [Function],
  statusCode: [Function],
  abort: [Function],
  state: [Function],
  always: [Function],
  then: [Function],
  promise: [Function],
  pipe: [Function],
  done: [Function],
  fail: [Function],
  progress: [Function],
  complete: [Function],
  success: [Function],
  error: [Function],
  status: 0,
  statusText: 'No Transport' }

There is a way to use this or is not the reponses i should see ?

Thanks.

Trouble to import an existing template

When I try to import a template I did, I can just browser to it, but after that it does nothing at all.

After choosing the file:
importexistingtemplate

I tried to import Yahoo template and I don't know why but it works... All others template i tested doesn't work...

Chrome Browser ignores Responses

When we use the Gargl chrome extension, we found that chrome does not record all of the information of certain responses.

For example, after solving Google's ReCaptcha correctly, chrome does not give the correct information of the response. It hides the content of response, and just gives us " )]}'["uvresp",,,,1] ". But we cannot get the entire content of the response but it does show properly in firefox.

And for the previous issue when there is "content-disposition:attachment; filename=Export090916.xml" in request headers, I can not find the response of xml file in Chrome it does show in Firefox.

These are not shortfalls of the Gargl extension but of the Chrome browser itself.

[Question] C# Work-around

Hello,

I have been wanting to try out this framework but I write in C#. After dabbling around a bit I decided to add a C# generator. See Yahoo template output here The problem is, I am having trouble with setting request headers. The way I am doing it now works, but it requires a separate include file (straight from StackOverflow).

Generator

Include

The problem is that the simple way to add headers would be req.Headers.Add("User-Agent", "TestAgent"); but User-Agent, among many other headers, are restricted and throw an exception when modified incorrectly. They must be set by req.UserAgent = "TestAgent";. You can see how this does not match the traditional style of Gargl.

So my question is... does anyone have a better way to do this? I was thinking about adding the include to the generated file, but it may get bulky if using multiple templates. Is the best way to go just to add this logic into the Generator itself (and spit out valid values)?

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.