Skip to content

Instantly share code, notes, and snippets.

@aino-prashant
aino-prashant / GeneratedTappSlimPojoMarkerImpl.java
Last active April 9, 2018 13:31
GeneratedTappSlimPojomarkerImpl(new)
package com.trupublic.shared.slim.tapp;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.logging.Level;
import java.util.logging.Logger;
import jsinterop.annotations.JsType;
@aino-prashant
aino-prashant / GeneratedAltDynamicEntityPojoMarkerImpl.java
Last active May 17, 2018 11:08
Issue related to Provider TypeKey .GeneratedAltDynamicEntityPojoMarkerImpl is the generated class (line No 93)
package org.appops.altshared.shared.altcore.altentity.type;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.logging.Level;
import org.appops.altshared.client.binding.AppOpsCommonGinjector;
import org.appops.altshared.shared.InstanceProvider;
@aino-prashant
aino-prashant / PojoMarkerImplWriter.java
Last active May 23, 2018 04:31
Static block of writer class
private void writeStaticBlock() {
sourceWriter.println("static{");
JMethod[] methods = pojoMarkerClass.getMethods();
JMethod[] overridableMethods = pojoMarkerClass.getOverridableMethods();
HashSet<JMethod> finalMethods = new HashSet<JMethod>();
finalMethods.addAll(Arrays.asList(methods));
finalMethods.addAll(Arrays.asList(overridableMethods));
for (JMethod method : finalMethods) {
if (!method.isAnnotationPresent(Worker.class) && isPojoMarkerMethod(method)) {
if (method.getName().startsWith("get") && method.getParameters().length == 0) {
@aino-prashant
aino-prashant / lavoce.html
Last active December 21, 2018 14:08
PDF to HTML conversion report
<style type="text/css">@font-face {font-family:"GKBBDO OceanSansMM_310_475_";src:url('data:application/x-font-woff;base64,d09GRk9UVE8AAAbsAAkAAAAACZgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABDRkYgAAAA4AAAA0oAAANaX1IR0U9TLzIAAAQsAAAAPAAAAE6JL4lQY21hcAAABGgAAABZAAAB0gONBpZoZWFkAAAExAAAAC8AAAA2wgpL02hoZWEAAAT0AAAAHgAAACQIIQG4aG10eAAABRQAAAAkAAAAJA2eAYVtYXhwAAAFOAAAAAYAAAAGAAlQAG5hbWUAAAVAAAABlgAAAtLkxJDYcG9zdAAABtgAAAATAAAAIP90ABR4nE1R/08Tdxj+HOV6A+uJPc8lnN59dJrUMVBkX8LGhgJOnVYSuyxZ5ihne2tLoUevpS2TLlIZy6zR6MCUTQtiFNDZoDO1y4hfqFWDTMZSiaJsJrj9BUs+Vz4sWbvtB98f3h+e532f93nyEiA/DxAEsWr7rpqauvqSeoskukyiy2M0mivKN5lff+sNc45fp3KEuipfXa1biSZQpe5l3ICPLYQWtCQKLkNHl6cyV/VAQxAHD/fWyq3tisNm90KDZQMsr6yseC3X34RbrfJ+CZraPV6pxQN3uiyy0ioroleylsGtzc1wb27JA/dKHknxZcF/vcCcGejwQBF6FdEqtYiKE8qfwQ/tEjTKLtnb3irB2v+VHLKrzOQSWz122Ws0vpAFZIsAa0ENqAPbwAfABD4CBdngIA9owNvgB/AXsYdQiJ/yimh6esCHuuPqEj/xjRrSoPaMgcXuvw1kUvsIdZPoY+0s7iafabGSMZAWyP6OB0j8npYeCcc8PtUZ13//GJnTTIBJqOtWHpz4evRJMdpMJcKDwfP8A1vpMS+3xdR8QBb6JbLvzI9Dd7lHQ9Zq4XMKv2vE+eKaYiZQf+39P1Op
@aino-prashant
aino-prashant / Corriere Adriatico.xml
Last active March 7, 2019 12:20
Scrapping Scripts
<target-source url="https://shop.corriereadriatico.it/edicola"
edition="Ancona">
<execution-element type="flow">
<execution-element type="act">
<locator type="XPATH" value="//*[@id=&quot;navLogin&quot;]" />
<action-type>CLICK</action-type>
</execution-element>
<execution-element type="data-put">
<locator type="XPATH" value="//*[@id=&quot;username_box&quot;]" />
<attribute-value>[email protected]</attribute-value>
@aino-prashant
aino-prashant / jsonFile.json
Last active February 19, 2019 14:09
Facebook scrapping
{
"André Marín-13 febbraio alle ore 02:31": {
"postedBy": "André Marín",
"profileLink": "https://www.facebook.com/andremarinp/?__tn__=kC-R&eid=ARBKDRPD-eX79P3owlMPbMqJTosHQHvkhosY0SPkUzYrIqT6QTjcWj3wgrCLp1Xp2YonQF3I9eezPo_n&hc_ref=ARQ4497PMUhfuD9eXQALqnghtTwljt-RiFfL--7zNq7JjaQPlOpK-G2Dw0MxFUfnArA&__xts__%5B0%5D=68.ARBa3dHrKjxidOPgdfhmih1rGRJ6vCvXESHTPKKijbaR6d-r1ec7ClUCfjdsQkSwQobOPu1I90Y8MDhObM_SJusnqv8FwuKp2U0rNIHbN3ovnB78N3Ch5hpiv-rWkFk6n1L7cyXvnZUf_-KU8TaDs73sFf0NtikHr_HqVqK4tLZgE3jeLwpBxJIVorCD5pJDDqvvBGEAbtuu1Lzuu4Hj6pPQg6CT0nS85gkcGLGoUf7ZKY8Zfr01-AlDba8DW1fA071UVqPqAA5MEZkGQe3WiDdDYFIRobSADbimhzvO8iiV-cu3xz6QiXJn3xqIKPFfD6StcLY",
"dateTime": "13 febbraio alle ore 02:31",
"reaction": {
"HaHa": "4239",
"Like": "537",
"Love": "79",
"Angry": "2",
@aino-prashant
aino-prashant / EntityElementProcessor.java
Last active March 25, 2019 13:47
Save article entity
package org.appops.scrapper.path.processor;
import org.appops.altshared.shared.altcore.altoperations.AltOperation;
import org.appops.core.service.ServiceStore;
import org.appops.invoker.call.OperationInvoker;
import org.appops.scrapper.exception.BrowserException;
import org.appops.scrapper.exception.ScriptException;
import org.appops.scrapper.path.context.ScraperContextStore;
import org.appops.scrapper.path.context.entity.ArticleEntityStore;
import org.appops.scrapper.path.context.entity.PageEntityStore;
@aino-prashant
aino-prashant / ilcentroFinalScript.xml
Last active March 27, 2019 12:33
Il centro image/pdf
<?xml version="1.0" encoding="UTF-8"?>
<target-source url="http://digital.ilcentro.it/ilcentro/books/latinaoggi/" edition="pescara" publication-id="22" publication-name="IlCentro">
<execution-element type="flow">
<execution-element type="act">
<locator type="IFRAME_NAME" value="iframe_login" />
<action-type>SWITCHFRAME</action-type>
<key />
</execution-element>
<execution-element type="data-put">
<locator type="XPATH" value="//input[@id='input_username']" />
20191011_larepubblica_nz_002_20191011_larepubblica_nz_003.pdf
20191011_larepubblica_nz_002.pdf
20191011_larepubblica_nz_002_20191011_larepubblica_nz_003_01.pdf
20191011_larepubblica_nz_002_20191011_larepubblica_nz_003_02.pdf
20191011_larepubblica_nz_003.pdf