71 karma · joined Apr 17, 2017 (9y ago) · 16 submissions
comment 8y ago · link · parent
The secure pipeline we ended up using involves:
1. Having a HTTPS endpoint for the proxy
2. Forwarding the captures to you immediately via listening WebSocket instances
Note that because the server upon receiving a request can immediately push it to WebSockets instead of relying on polling, no storage is needed
comment 9y ago · link · parent
4.
Show HN: WrapAPI Proxy, a Zero-Install Charles Proxy Alternative(wrapapi.com ↗)
11 points · by wrapapi · 9y ago · 4 comments
comment 9y ago · link · parent
The most helpful part is that you can pass a callback which will trigger before/during/after each step, which can let you ensure that the state of the page matches what you're expecting. In our case, we use it to make sure that you're switched to the right tab, etc. Take a look! I highly recommend it.
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
Let's say you have a web-based inventory management system or CRM that requires a login, but you want to take data a customer has sent you in a spreadsheet and automatically batch enter it into the CRM, which doesn't have that functionality. You could then:
1. Create an API endpoint that allows you to log into that system and return a state token
2. Create a second API endpoint that's parametrized the inputs of the form to create a new inventory entry
3. Chain those 2 API endpoints together so that the 2 actions are actually combined into one API call
Our focus is not only on getting data, but automating the many things that you or your company does with websites to save time
comment 9y ago · link · parent
That endpoint will then emit a state token, which includes the session cookies. You can feed that state token into your next request and it'll authenticate you
comment 9y ago · link · parent
We have a new WrapAPI API Builder looks like a browser, and is as easy to use as one too. You can define your API's inputs with a quick tap on the address bar, and point and click at the data you want to extract.
We also have a Chrome extension is smarter and better-integrated than ever. It records your requests and It'll automatically create parameter inputs for the values that change between requests to the same endpoints. The contents of your captures are immediately ready for you to start defining outputs and data to extract too.
Let me know if you have any questions or feedback!
16.
Show HN: WrapAPI v2 – Build APIs, scrapers, bots on any website(wrapapi.com ↗)
166 points · by wrapapi · 9y ago · 60 comments