For my project, i need to insert an EAN (Productcode like 4009900508599) on this website: codecheck.info
In a normal case it isnt really an problem, because you can send the content directly to the website.
On this website, the call is:
https://www.codecheck.info/product.search?q=4009900508599&r=03AOLTBLSbwq8TlZl9bDf72tOekXcyrp8vCBu6pgfYvI-0fuFv40FWCX5XX5Z9DTOlo0J-l3WGmSRRUMmxGLl_oO9miNeJExZsrZwbaFFDovw5FrOMaM2CeuOTFQOMr4q__ixGx7jV7509DF_y7Y19maVN40kuCrjIE7JCV7p3uiu4DhOgU6BVlW8O5yrx8px7_fknOwseOiLXIFbxDlbZ6nD-67765YdL6zOiyoH3nHL1LO1L0_GQQkPOrP3QnjXHjjaDzg_RYT48cvkGnt3ER-8AUwB9LPwP-9OJp4uWzxtG-TiWngZEwzcJDJS4FEfsd2Xq2taU7sOhZquEiwi4pFdXQgAwb0PRYNEv9GR1tBb0LYnHUiF9LLMwOhvL3pnaididlwl--jMP_-ZvSnK04EHIKYKQm5CLPbgcfs68iC4GtWnLv63g6hD_W_1kElHdhR3rT_VdAhkjESo7CGcmUyKJ_TVw3Xy4rOZS8t3TCJSux98-otnmJh4
With q=03A... they generate some stuff, that i cant know.
So my question is, does someone know a way to insert the number into the searchbox automatically and get their content?
Related
I am sending a request on third party api. and a getting response like ⌚ Test which is actually looks like ⌚ Test on third party UI. My question is. In which format emoji's i should save into database , and how i can display the same emoji on UI as well.
please help
For this you will need to find the correct encoding to store your string in your database.
Since I don't know which DB you're using, you can go trough this tutorial to understand how to define your column in DB to store the correct format. EXAMPLE
I'm writing a code for Amazon Alexa. And in the developer.amazon.com, we configure the intents, utterances etc... Here I need to get the question asked by the user.
I'm sure that this works using the intents but I will need the utterances. For eg:
GetTheData get me the user data
GetTheData get me user details
Here I'm able to get the GetTheData printed using intent.getName(), But i want to know if there is a way to get the content after the intent name i.e. get me the user data. I want to know this for my research purpose.
Please let me know how can I get this.
Thanks
No, unfortunately there is no way to get this information with the ASK/echo.
Your only solutions at this time would be to split that into one intent per utterance, or switch to google home (its SDK can give you the raw user text).
Let me just start by saying that this is a soft question.
I am rather new to application development, and thus why I'm asking a question without presenting you with any actual code. I know the basics of Java coding, and I was wondering if anyone could enlighten me on the following topic:
Say I have an external website, Craigslist, or some other site that allows me to search through products/services/results manually by typing a query into a searchbox somewhere on the page. The trouble is, that there is no API for this site for me to use.
However I do know that http://sfbay.craigslist.org/search/sss?query=QUERYHERE&sort=rel points me to a list of results, where QUERYHERE is replaced by what I'm looking for.
What I'm wondering here is: is it possible to store these results in an Array (or List or some form of Collection) in Java?
Is there perhaps some library or external tool that can allow me to specify a query to search for, have it paste it in to a search-link, perform the search, and fill an Array with the results?
Or is what I am describing impossible without an API?
This depends, if the query website accepts returning the result as XML or JSON (usually with a .xml or .json at the end of url) you can parse it easily with DOM for XML on Java or download and use the JSONLibrary to parse a JSON.
Otherwise you will receive a HTML that is the page that a user would see in a browser, then you can try parse it as a XML but you will have a lot of work to map all fields in the HTML to get the list as you want.
I daily visit this link to find my lectures at school. Every time I have to scroll down the list to find my own class, and then post it so I can view the result. Is there any way i could make a direct link to the preferred content? I'm looking to create a simple webview app in Android showing individual form categories.
EDIT : Really any method for converting the aspx info into another format would do the trick. Prefferably a direc link to each form item. But if I can convert every single item to a .xml file or anything else I could work with it. But I have to make it automated.
You can capture the outgoing request and write a simple application to POST the data back to the page. The WebClient class is useful for this.
Looking at the request in Chrome's developer tools, I see that the form posts back to itself and then redirects to the result page. Presumably, you should POST the form data to the initial page, which will then cause it to perform the redirect.
The form contains a large amount of ViewState data which may or may not need to be included in the request to make it work.
A completely different approach would be to find a browser extension, such as a macro recorder, which emulate your actions. This plugin (haven't tried it myself) appears to do exactly that.
I am developing a Java project in which I will take the text from a user in a textArea and generate an HTML page with that text.
I want to allow the user to add links in the generated HTML Page. As I am taking the page contents from the user, I also need to take the link name and the URL from the user.
How can I provide this functionality?
This is a bit vague ...
You don't say if you also somehow know where in the text the links need to be generated. If you don't, your problem is not solvable.
If you do, then I guess you just need to add some logic that tests if the current location in the output stream somehow corresponds to one of the locations where there should be a link, and generate the link.
The syntax for a HTML link can be found wherever, and I would assume you know it already, but just to be complete it looks like this:
link to example.com
Replace the part inside the quotes with the reference, and the text between > and < with the link name.
You'll need a database to store the links. Unless you want to show them only once.
String links = request.getParameter("textArea_name");
// then save it on your prefered database
To show it you can then load it from the database and just output them.