--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/54946832-8f5d-4da6-8957-5930ffb5465f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
האתגר כאן הוא להבין איך האתר פועל. וכאן לצערי החדשות הרעות הן שכל אתר פועל אחרת, ואין איזושהי תבנית אחת קבועה. אם מדובר במספר מצומצם של לינקים, מה שכנראה כדאי לעשות הוא לעבור עליהם אחד אחד, להבין איך מבוצע החיפוש ואז לדמות אותו.בדרך כלל מדובר על URL ספציפי לחיפוש שמילת החיפוש מופיעה בו כפרמטר. זה נעשה לרוב דרך REST API, כך שהדף המרכזי לא משתנה, ורק רכיב בתוכו משתנה עם החיפוש. התוצאה של חיפוש כזה הוא בד"כ JSON שאותו אפשר לפרסר םע JSONLITE או משהו כזה.כדי לעשות את הנ"ל, קצת כיתות מקלדת להבנת התהליך באתר היעד וכתיבת קוד קצר באמצעות rvest ו jsonlite זה כל מה שתצטרך.לפעמים, החיפוש מוטמע באתר באופן כזה שחייבים לדמות התנהגות של משתמש אמיתי - כלומר לדמות איבנטים של בראוזר כמו קליקים וכד'. אם זה המצב, זה קצת יותר מסובך, אבל חבילת RSELENIUM תעזור מאד בהקשר הזה.אם אתרי היעד הם מגוונים, ייתכן שתצטרך לנחש או לאמן איזשהו מודל שידע למצוא את מקום החיפוש והURL הרלוונטי. זה כמובן יותר מסובך. אם תתן עוד פרטים אפשר אולי יהיה לעזור יותר
On Sun, Jun 16, 2019 at 2:30 PM אריאל וינוגרד <arielvi...@gmail.com> wrote:
שלום.--אני חדש בקבוצה, מקווה שאני שואל בצורה תקינה...אני מחפש פונקציה (או כל דרך אחרת) שאוכל בקלט לתת לה מילה ולינק ועוד מה שתצטרך (אני רוצה שהיא תלך לאתר של הלינק, תלך למיקום ששם מבצעים את החיפוש בעמוד ותחפש את המילה שנתתי לה). וכתוצאה תחזיר לי את הלינק החדש.יש פונקציה שיכולה לעזור בזה? את מציאת מיקום החיפוש ושליחה לשם של מילה אני יודע איך עושים, אני לא יודע איך להגיד לו "תחפש" ולקחת חזרה את הלינק.מאד אשמח אם מישהו פה ידע לעזור לי.תודה רבה.אריאל
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-group+unsub...@googlegroups.com.
נשמע שRSelenium זו הדרך לעשות את מה שאתה רוצה. אתה צריך לזהות את המקום של שורת החיפוש בתוך העמוד, ולהשתמש בפונקציה SendKeystoElement.
אבל על מנת להשתמש בסלניום צריך להתקין קודם דוקר, וצריך לפתוח סרבר. ממליץ לחפש מדריך בנושא. תכף אנסה לצרף כאן.
הייתודה על התשובה הזריזה.האתר הוא תמיד אותו אתר. כך שבעצם אני לוקח את הstring מהטבלה שאצלי המחשב ומזין אותו כל פעם באותו לינק ולאותו משתנה בתוך האתר. העניין הוא שאני לא יודע איך להגיד לו תעשה את החיפוש ואיך אני אומר לו שיחזיר לי את הלינק החדש.
תודה רבה
בתאריך יום ראשון, 16 ביוני 2019 בשעה 14:56:57 UTC+3, מאת Amit Gal:
האתגר כאן הוא להבין איך האתר פועל. וכאן לצערי החדשות הרעות הן שכל אתר פועל אחרת, ואין איזושהי תבנית אחת קבועה. אם מדובר במספר מצומצם של לינקים, מה שכנראה כדאי לעשות הוא לעבור עליהם אחד אחד, להבין איך מבוצע החיפוש ואז לדמות אותו.בדרך כלל מדובר על URL ספציפי לחיפוש שמילת החיפוש מופיעה בו כפרמטר. זה נעשה לרוב דרך REST API, כך שהדף המרכזי לא משתנה, ורק רכיב בתוכו משתנה עם החיפוש. התוצאה של חיפוש כזה הוא בד"כ JSON שאותו אפשר לפרסר םע JSONLITE או משהו כזה.כדי לעשות את הנ"ל, קצת כיתות מקלדת להבנת התהליך באתר היעד וכתיבת קוד קצר באמצעות rvest ו jsonlite זה כל מה שתצטרך.לפעמים, החיפוש מוטמע באתר באופן כזה שחייבים לדמות התנהגות של משתמש אמיתי - כלומר לדמות איבנטים של בראוזר כמו קליקים וכד'. אם זה המצב, זה קצת יותר מסובך, אבל חבילת RSELENIUM תעזור מאד בהקשר הזה.אם אתרי היעד הם מגוונים, ייתכן שתצטרך לנחש או לאמן איזשהו מודל שידע למצוא את מקום החיפוש והURL הרלוונטי. זה כמובן יותר מסובך. אם תתן עוד פרטים אפשר אולי יהיה לעזור יותר
On Sun, Jun 16, 2019 at 2:30 PM אריאל וינוגרד <arielvi...@gmail.com> wrote:
שלום.--אני חדש בקבוצה, מקווה שאני שואל בצורה תקינה...אני מחפש פונקציה (או כל דרך אחרת) שאוכל בקלט לתת לה מילה ולינק ועוד מה שתצטרך (אני רוצה שהיא תלך לאתר של הלינק, תלך למיקום ששם מבצעים את החיפוש בעמוד ותחפש את המילה שנתתי לה). וכתוצאה תחזיר לי את הלינק החדש.יש פונקציה שיכולה לעזור בזה? את מציאת מיקום החיפוש ושליחה לשם של מילה אני יודע איך עושים, אני לא יודע איך להגיד לו "תחפש" ולקחת חזרה את הלינק.מאד אשמח אם מישהו פה ידע לעזור לי.תודה רבה.אריאל
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-group+unsubscribe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/54946832-8f5d-4da6-8957-5930ffb5465f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-group+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/624e9d3c-6360-4c9a-a9dd-a0f432a6333f%40googlegroups.com.
הייתודה על התשובה הזריזה.האתר הוא תמיד אותו אתר. כך שבעצם אני לוקח את הstring מהטבלה שאצלי המחשב ומזין אותו כל פעם באותו לינק ולאותו משתנה בתוך האתר. העניין הוא שאני לא יודע איך להגיד לו תעשה את החיפוש ואיך אני אומר לו שיחזיר לי את הלינק החדש.
תודה רבה
בתאריך יום ראשון, 16 ביוני 2019 בשעה 14:56:57 UTC+3, מאת Amit Gal:
האתגר כאן הוא להבין איך האתר פועל. וכאן לצערי החדשות הרעות הן שכל אתר פועל אחרת, ואין איזושהי תבנית אחת קבועה. אם מדובר במספר מצומצם של לינקים, מה שכנראה כדאי לעשות הוא לעבור עליהם אחד אחד, להבין איך מבוצע החיפוש ואז לדמות אותו.בדרך כלל מדובר על URL ספציפי לחיפוש שמילת החיפוש מופיעה בו כפרמטר. זה נעשה לרוב דרך REST API, כך שהדף המרכזי לא משתנה, ורק רכיב בתוכו משתנה עם החיפוש. התוצאה של חיפוש כזה הוא בד"כ JSON שאותו אפשר לפרסר םע JSONLITE או משהו כזה.כדי לעשות את הנ"ל, קצת כיתות מקלדת להבנת התהליך באתר היעד וכתיבת קוד קצר באמצעות rvest ו jsonlite זה כל מה שתצטרך.לפעמים, החיפוש מוטמע באתר באופן כזה שחייבים לדמות התנהגות של משתמש אמיתי - כלומר לדמות איבנטים של בראוזר כמו קליקים וכד'. אם זה המצב, זה קצת יותר מסובך, אבל חבילת RSELENIUM תעזור מאד בהקשר הזה.אם אתרי היעד הם מגוונים, ייתכן שתצטרך לנחש או לאמן איזשהו מודל שידע למצוא את מקום החיפוש והURL הרלוונטי. זה כמובן יותר מסובך. אם תתן עוד פרטים אפשר אולי יהיה לעזור יותר
On Sun, Jun 16, 2019 at 2:30 PM אריאל וינוגרד <arielvi...@gmail.com> wrote:
שלום.--אני חדש בקבוצה, מקווה שאני שואל בצורה תקינה...אני מחפש פונקציה (או כל דרך אחרת) שאוכל בקלט לתת לה מילה ולינק ועוד מה שתצטרך (אני רוצה שהיא תלך לאתר של הלינק, תלך למיקום ששם מבצעים את החיפוש בעמוד ותחפש את המילה שנתתי לה). וכתוצאה תחזיר לי את הלינק החדש.יש פונקציה שיכולה לעזור בזה? את מציאת מיקום החיפוש ושליחה לשם של מילה אני יודע איך עושים, אני לא יודע איך להגיד לו "תחפש" ולקחת חזרה את הלינק.מאד אשמח אם מישהו פה ידע לעזור לי.תודה רבה.אריאל
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/54946832-8f5d-4da6-8957-5930ffb5465f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/624e9d3c-6360-4c9a-a9dd-a0f432a6333f%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-group+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/54946832-8f5d-4da6-8957-5930ffb5465f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-group+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/54946832-8f5d-4da6-8957-5930ffb5465f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/624e9d3c-6360-4c9a-a9dd-a0f432a6333f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/ab4a4307-fc0f-4193-82a3-336adea39a41%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/54946832-8f5d-4da6-8957-5930ffb5465f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/624e9d3c-6360-4c9a-a9dd-a0f432a6333f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/ab4a4307-fc0f-4193-82a3-336adea39a41%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-group+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/54946832-8f5d-4da6-8957-5930ffb5465f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-group+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/624e9d3c-6360-4c9a-a9dd-a0f432a6333f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-group+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-group+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/54946832-8f5d-4da6-8957-5930ffb5465f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-group+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/624e9d3c-6360-4c9a-a9dd-a0f432a6333f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-group+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/54946832-8f5d-4da6-8957-5930ffb5465f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/624e9d3c-6360-4c9a-a9dd-a0f432a6333f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/ab4a4307-fc0f-4193-82a3-336adea39a41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/bb517a03-d10a-4d0f-8b50-420a360af321%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-group+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/54946832-8f5d-4da6-8957-5930ffb5465f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-group+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/624e9d3c-6360-4c9a-a9dd-a0f432a6333f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-group+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/ab4a4307-fc0f-4193-82a3-336adea39a41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-group+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/54946832-8f5d-4da6-8957-5930ffb5465f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/624e9d3c-6360-4c9a-a9dd-a0f432a6333f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/ab4a4307-fc0f-4193-82a3-336adea39a41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/bb517a03-d10a-4d0f-8b50-420a360af321%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Israel R User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to israel-r-user-g...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/israel-r-user-group/143e15f4-b26a-4601-99b8-adec032a579a%40googlegroups.com.