Новости спорта

Спортивные события онлайн на нашем сайте

Новости спорта, букмекерские конторы, официальный букмекерский сайт
import java.io.IOException; import java.io.PrintWriter; import java.util.List; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @WebServlet(name = "ReviewServlet", urlPatterns = {"/reviews"}) public class ReviewServlet extends HttpServlet { protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); try (PrintWriter out = response.getWriter()) { String url = "https://apps.apple.com/ru/app/tennisi-bet-%D1%81%D1%82%D0%B0%D0%B2%D0%BA%D0%B8-%D0%BD%D0%B0-%D1%81%D0%BF%D0%BE%D1%80%D1%82/id1294769808?platform=iphone&see-all=reviews"; List reviews = AppleStoreReviewParser.parseReviews(url); out.println(""); out.println(""); out.println(""); out.println("Отзывы"); out.println(""); out.println(""); out.println("

Отзывы с Apple Store:

"); for (String review : reviews) { out.println("

" + review + "

"); } out.println(""); out.println(""); } } @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); } @Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); } }