Giter VIP home page Giter VIP logo

libreapi's People

Contributors

ccuetoh avatar rvillablanca avatar

Stargazers

 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

libreapi's Issues

las actividades por rut solo retornan 1 actividad.

Al parecer actualizaron la página del sii, por que ahora la api de actividades solo retorna una actividad y no una lista de actividades.
Como sea, yo lo reparé con esta porción de código en el método parseActivitiesHTML, un bucle for para iterar sobre cada tabla excluyendo la primera de matadata.

	var activities []*Activity
	for i := 0; i < 100; i++ {
		doc.Find(fmt.Sprintf("table.tabla:nth-child(27) > tbody:nth-child(1) > tr:nth-child(%v)", i+2)).EachWithBreak(func(_ int, s *goquery.Selection) bool {
			name2 := clean(s.Find("td:nth-child(1)"))
			if name2 == "" {
				return true
			}

			var code int
			code, err = strconv.Atoi(clean(s.Find("td:nth-child(2)")))
			if err != nil {
				return false
			}

			var date time.Time
			date, err = time.Parse(layout, clean(s.Find("td:nth-child(5)")))
			if err != nil {
				return false
			}

			activities = append(activities, &Activity{
				Name:         name2,
				Code:         code,
				Category:     clean(s.Find("td:nth-child(3)")),
				SubjectToVAT: clean(s.Find("td:nth-child(4)")) == "Si",
				Date:         date,
			})

			return true
		})

		if err != nil {
			return nil, err
		}
	}

Server is Down

Hi guys! Hope everything is OK.

There is a problem with the Host, I used the API on friday 14 and everything was OK but today (Monday 17) all my request have the problem

Screen Shot 2022-10-17 at 10 07 18

crypto

hola amigos, buena colección de apis, muchas gracias por lo que hacen, una pregunta, ¿como puedo buscar otras cryptos que no estan enlistadas?

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.